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...
Get deeper into java
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...
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 =...
Prior to Java 8 an interface could have either constant variables or method definitions. Java 8 made it possible to declare default and static methods with implementations in interfaces. However, you could not declare...
Try with resources was introduced in Java 7. You can read more about it here Java Try With Resources In Java 9 many improvements have been done with this feature making it much less...
Underscore (“_”) is a keyword in Java 9. If you use “_” as an identifier, javac of JDK 8+ issues a warning. javac of JDK 9, issues an error! To check and migrate your...
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:...
JShell is a very useful tool for prototyping and testing Java code snippets. Even though it is not yet officially released I highly recommend checking it out. This tool comes bundled with JDK 9....
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...