Hello all! In this blog post I am gonna tell you about the new features of java 10.I am pretty sure all of you have heard of Java 10! Well, some of you might have dive in to Java 10 as well. Noo? Then this blog post will be a good beginning for you to learn about java 10 and its new exciting features. I am not gonna tell you about all the features but I will be focusing on the features that I found more interesting.
1.Local Variable Type Inference
Java 10 onwards Java also will have the 'var' keyword like JavaScript. This allows you to specify a variable without mentioning the data type of that particular variable but Java compiler will identify the real data type of the variable you declared.And also note that this 'var' keyword can only be used when defining variables inside methods and variables inside blocks.Although Java 10 allows the users to define variables with 'var', that doesn't make Java a dynamically typed language because once the type is assigned you are not allowed to change it!
2.Root Certificates
This new feature is evidence for that the JDK 10 was created with a close collaboration of Open JDK. This will provide default set of root authorities which makes Open JDK more appealing to the user.This also minimizes the gap between OpenJDK and Oracle JDK.
3.Garbage Collector Interface
This is another useful feature that came with Java 10.This increases the code isolation of different garbage collectors by this garbage collector interface.This provide better modularity and will be helpful in adding and removing GC.
So that's all I am gonna discuss in this blog post.As I mentioned before, this is obviously not all new about Java 10.For you to get a complete understanding you can refer Oracle's Release Notes.
Java 10 onwards Java also will have the 'var' keyword like JavaScript. This allows you to specify a variable without mentioning the data type of that particular variable but Java compiler will identify the real data type of the variable you declared.And also note that this 'var' keyword can only be used when defining variables inside methods and variables inside blocks.Although Java 10 allows the users to define variables with 'var', that doesn't make Java a dynamically typed language because once the type is assigned you are not allowed to change it!
2.Root Certificates
This new feature is evidence for that the JDK 10 was created with a close collaboration of Open JDK. This will provide default set of root authorities which makes Open JDK more appealing to the user.This also minimizes the gap between OpenJDK and Oracle JDK.
3.Garbage Collector Interface
This is another useful feature that came with Java 10.This increases the code isolation of different garbage collectors by this garbage collector interface.This provide better modularity and will be helpful in adding and removing GC.
So that's all I am gonna discuss in this blog post.As I mentioned before, this is obviously not all new about Java 10.For you to get a complete understanding you can refer Oracle's Release Notes.
Comments
Post a Comment