Wednesday 11 October 2017

Java 9 - Setup in Ubuntu and brief Overview



Java 9
is here.



Add/update PPA to install Java 9

  $ sudo add-apt-repository ppa:webupd8team/java
  $ sudo apt-get update


Installation steps :

1. Installation without any default setup recommendations
  $ sudo apt-get install --no-install-recommends oracle-java9-installer
2. Installation with default setup recommendations
  $ sudo apt install oracle-java9-set-default
3. Check/change alternative installations
  $ sudo update-alternatives --config java


Quick Overview : 

1. Modular programming.
2. REPL called jshell is here. No need to write a complete class with main method to run a simple code snippet.
3. Enhancements in stream api
4. Private methods with in the interface are supported.