Category: Java 9

What is Java 9 jlink? 0

What is Java 9 jlink?

What is jlink? Jlink is Java’s new command line tool which allows you to link sets of modules (and their transitive dependencies) to create a run-time image. Java has always had dynamic linking, but with...

Getting CPU usage in Java 9 – Process API improvements 0

Getting CPU usage in Java 9 – Process API improvements

The process API has been improved for controlling and managing operating-system processes. Process Information The class java.lang.ProcessHandle contains most of the new functionalities: ProcessHandle self = ProcessHandle.current(); long PID = self.getPid(); ProcessHandle.Info procInfo =...

Usage of Underscore(_) in Java 8 and Java 9 0

Usage of Underscore(_) in Java 8 and Java 9

Using underscore (_) as a variable name was normal till Java 7. But now its usage will either result in a warning or even compilation error depending upon your Java version. Imagine this code:...

Adding Java 9 support in Eclipse 0

Adding Java 9 support in Eclipse

Java 9 is supposed to be launched in June 2017 but we can still download it from Oracle’s website and start playing around it. If you use Eclipse as your Java development IDE, you...