Wednesday, 7 March 2018

JAVA 9

Major Features of JAVA 9

  • Modularity  - jigsaw - (rt.jar--> jmods)
  • REPL Jshell an interactive tool without java classes.
  • Try with Resource  Autocloseable  interface
  • Factory Methods in the collection like  List.of()
  • the private method in the interface but earlier version it has only abstract methods.
  • enhancements in stream API.
  • Https 2 Client (java.url.http)
  • G1 Grabage Collection


Jshell
Path :jdk/bin/jshell
/help
System.out.println("hello");//1
x=30//2
30+5//$3//3
/list
1, 2,3
/edit number
/save jat.jsh
/var
/method
/exit
try with Resource implement Autocloseable  some bugs






No comments:

Post a Comment