Home » Java » Core Java » Page 29

Core Java

[FREE WEBINAR] Java 11 First Impressions

A little more than a year ago, we were anxiously awaiting the arrival of the newly modular Java 9. Around the same time, a new release cycle was introduced that would see new version releases every 6 months, with long-term support (LTS) releases coming only once every 3 years (or once every 6 versions).   According to a recent study ...

Read More »

Picocli on GraalVM: Blazingly Fast Command Line Apps

GraalVM GraalVM allows you to compile your programs ahead-of-time into a native executable. The resulting program has faster startup time and lower runtime memory overhead compared to a Java VM. This is especially useful for command line utilities, which are often short-lived. GraalVM has limited support for Java reflection and it needs to know ahead of time the reflectively accessed ...

Read More »

Java’s Future-Looking Projects: Panama, Loom, Amber, and Valhalla

The press release “Oracle Code One Java Keynote Outlines the Future of Java” describes the Java Keynote at Oracle Code “highlight[ing] future projects” Project Valhalla, Project Panama, Project Amber, and Project Loom. This post provides brief summaries of each of these projects and some recent work associated with each of these projects for those who may not be familiar with ...

Read More »

IBM to Acquire Red Hat: A Java-Oriented First Look

Oracle Corporation completed the process of acquiring Sun Microsystems nearly nine years ago. That was big news then and similarly big news was announced today: IBM and Red Hat have agreed to IBM‘s acquisition of Red Hat. The main IBM page announces “IBM to acquire Red Hat.” It then states, “This changes everything.” It is likely that this announced acquisition ...

Read More »

JEP 181 incompatibility, nesting classes / 2

JEP 181 is a nest based access control https://openjdk.java.net/jeps/181. It was introduced in Java 11 and it deliberately introduced an incompatibility with previous versions. This is a good example that being compatible with prior versions of Java is not a rule carved into stone but it rather is to keep the consistency and steady development of the language. In this ...

Read More »

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 »