Till Java 8, String in java were internally represented by char. Each char is stored in 2 bytes in memory. JDK developers at oracle analyzed lots of client’s application help dumps and they noticed that most of the strings can be represented only using Latin-1 characters set. A latin-1 char can be stored in one byte, which is 50% (1 byte) less than char data type storage.
Java 9 is bringing lots of new enhancements which are going to affect your programming style and habit, in big way. The biggest change is the modularization of Java. It’s another big change after Lambdas in Java 8. In this article, I am listing down changes which will be part of JDK 9 release. What […]
JPMS (Java Platform Module System) is the major enhancement in Java 9. It is also known as Project Jigsaw. In this Java 9 modules tutorial, we will learn about modules (in general) and how your programming style will change in future when you will start writing modular code.
JShell allows us to execute Java code snippets and get immediate results without having to create a solution or project or using any code editor.
Date/Time handling always been a pain area for java developers. The new Date-Time API added in Java 8 changed the way, you interact with dates in java. It was a very powerful and much needed improvement. The only thing missing was, getting a stream of dates having some common difference between two subsequent dates (though […]
Learn new java 9 improvements in Stream API i.e. takeWhile / dropWhile methods, ofNullable and iterate methods with examples.
Learn to create immutable collections such as immutable list, immutable set and immutable map using new factory methods in Java 9.
Java 9 onward, you are allowed to include private methods in interfaces. Using private methods, now encapsulation is possible in interfaces as well. In this java 9 tutorial, we will learn about interface private methods in detail. Table of Contents Interfaces till Java 7 Static and defaults methods since Java 8 Private methods since java […]