Home » Java » Core Java » Page 2

Core Java

JDK16 javac xlint Warning about Default Constructors

I mentioned in my blog post “Explicit No-Arguments Constructor Versus Default Constructor” that “it is possible that one day javac will have an available lint warning to point out classes with default constructors.” In that post, I referenced JDK-8071961 (“Add javac lint warning when a default constructor is created”), which has now been implemented as of JDK 16 Early Access ...

Read More »

Java Creates New Big Data Opportunities

If you think that we live in the age of digital information, you are totally right. But do you know just how much data is generated globally? It is impossible to determine the exact figure, but rough estimations say that people, machines, and organizations create more than 2.5 quintillion bytes of data every day. It’s a mind-blowing number and it ...

Read More »

[MEGA DEAL] The 2020 Java Bootcamp Bundle (96%)

Develop Expertise on the Leading Programming Language & Create Actual Programs with 10 Hours of Content on Java Fundamentals, Collections, Classes, and More Hey fellow geeks, This week, on our JCG Deals store, we have another extreme offer.We are offering a massive 96% off on The 2020 Java Bootcamp Bundle. Get it now with only $35,99 instead of the original ...

Read More »

Java Exercises for Beginners

Many people who tried learning to program never become programmers. Why? Among all the reasons, one can single out the most important: these people didn’t have enough practice. So if searching for Java programming exercises is a clever decision. Plus, practicing programming itself is a very exciting experience (much more exciting than reading theory!) and if you do it the ...

Read More »

Different ways to remove Spaces from String In Java

String manipulation is done most often while programming. Like removing spaces in or around the string text. This also known as ‘strip’ping off spaces in the string. So up till now we are all aware of the different ways to remove spaces from string in java, namely trim, replaceAll. However, java 11 has made some new additions to these with methods like, strip, stripLeading , stripTrailing. Majority of the times, we ...

Read More »

Quick tip: ISO 8601 durations in Java

Many developers know about the interchange formats for dates and times defined by ISO 8601. (For example 2007-08-31T16:47+00:00 which represents 16:47 on August 31, 2007 in UTC) However, what is not so well-known (at least in my experience), is that this standard also defines a format for durations. Here are a few examples: P1Y – 1 yearP2M4D – 2 months and ...

Read More »

Difference between JVM, JIR, JRE, and JDK in Java

JRE, JVM, and JDK are three terms you often heard in conjunction with Java programming language, and most people either confuse them or think they all are the same. In this Java article, you will learn what is Java Run-time (JRE), what is Java Virtual Machine (JVM) and what is Java Development Kit (JDK) along with Just in Time compiler ...

Read More »