Java 10 Time-Based Release Versioning


Java 10, Oracle has adjusted time sensitive variant string plan The new time sensitive model has supplanted the component based.

Another Java discharge at regular intervals. The March 2018 discharge is JDK 10, the September 2018 discharge is JDK 11, etc. These are called highlight discharges and are relied upon to contain no less than a couple of huge features
Support for the element discharge will last just for a half year, i.e., until next component discharge Long haul bolster discharge will be set apart as LTS. Backing for such discharge will be for a long time

Java adaptation format

If you run order java - version in comaand brief/terminal the you will get outout variant data like this:

Command Prompt
C:\Users\Lokesh>java -version
java version "10.0.1" 2018-04-17
Java(TM) SE Runtime Environment 18.3 (build 10.0.1+10)
Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10.0.1+10, mixed mode)

The new format of the version number is:

$FEATURE.$INTERIM.$UPDATE.$PATCH

Java Version API

Runtime.version() can be used to get version counter values programmatically. e.g.

Version version = Runtime.version();
version.feature();
version.interim();
version.update();
version.patch();
 
Output:
 
10
0
1
0

Parse existing version

Version version = Runtime.Version.parse("10.0.1");
 
version.feature();
version.interim();
version.update();
version.patch();





javacodegeeks is optimized for learning.© javacodegeeks .
All Right Reserved and you agree to have read and accepted our term and condition