Home » Java » Core Java

Core Java

Java: Gain Performance Using SingletonStream

Java streams with just one element sometimes create unnecessary overhead in your applications. Learn how to use SingletonStream objects and gain over tenfold performance for some of these kinds of streams and learn how, at the same time, you can simplify your code. Background The Stream library in Java 8 is one of the most powerful additions to the Java language ever. ...

Read More »

Java 11 is Here, Are You Ready to Make the Switch?

A year after the Java 9 release was supposed to “rock our worlds”, the LTS version we’ve ACTUALLY been waiting for is finally here Most of the developers, teams, companies, etc. that we know haven’t updated past Java 8 yet. Even with the release of module Java 9 last year, and the quick release of Java 10 that followed in ...

Read More »

A Tale of Two Oracle JDKs

There has been concern recently that Java developers will inadvertently use the wrong Oracle-provided JDK implementation now (as of JDK 11) that Oracle provides builds of the open source OpenJDK and also provides commercial JDK builds based largely on the OpenJDK source. The table below compares and contrasts the two versions of JDK that Oracle provides (but Oracle won’t be ...

Read More »

Java: GraalVM Database Stream Performance

GraalVM is the new kid on the JVM block. It is an open-source Virtual Machine that is able to run many programming languages, such as Java, Rust and JavaScript, at the same time. GraalVM has also a new internal code optimizer pipeline that can improve performance significantly compared to other JVMs under some conditions. Learn how to reap the benefits ...

Read More »

JDK 11 General Availability

As scheduled, it was announced today that JDK 11 was released for General Availability. Earlier this week, Iris Clark announced the “JSR 384 (Java SE 11) Final Release” and in that same message referenced the final release version of JSR 384, referenced the “Java SE 11 (18.9) Platform JSR (384)” specification page, and concluded, “The 384 EG is now disbanded.” ...

Read More »

Debugging Java Streams with IntelliJ

Streams are very powerful and can capture the gist of your intended functionality in just a few lines. But, just as smooth as they are when it all works, just as agonizing it can be when they don’t behave as expected. Learn how to use IntelliJ to debug your Java Streams and gain insight into the intermediate operations of a ...

Read More »

Raw String Literals Support in JDK 12 Early Access Build 12

The biggest news this week in the world of Java is likely going to be the General Availability of JDK 11. However, another exciting development is the release of JDK 12 Early Access Build 12 (20 September 2018). This Early Access Build 12 of JDK 12 is significant because it includes implementations related to JEP 326 [“Raw String Literals (Preview)”] ...

Read More »

Composition in Java will be Simplified with New JEP Draft

Favor Composition over Inheritance The mantra “Favor Composition over Inheritance” has, with good reasons, been repeated many times in the literature. However, there is little or no language support in Java to simplify the composition of objects. However, with a new JEP draft named “Concise Method Bodies”, the situation might improve slightly. Brian Goetz is responsible for the JEP draft which likely ...

Read More »