Java

JAVA 11

JAVA 11

Oracle JDK would no longer be free for commercial use.You can use it in developing stages, but to use it commercially, you need to buy a license. Java 11 is the second LTS release after Java 8.

Oracle recommends that the JDK is updated with each Critical Patch Update (CPU). In order to determine if a release is the latest, the following Security Baseline page can be used to determine which is the latest version for each release family. It is not recommended that this JDK (version 11.0.6) be used after the next critical patch update scheduled for April 14, 2020.

  • Entire section of supported browsers has been removed from the list of supported configurations due to unavailability of the deployment stack.
  • Auto-update has been removed from JRE installations in Windows and MacOS.
  • Java language translation in French, German, Italian, Korean, Portuguese (Brazilian), Spanish, and Swedish is no longer provided.
  • JRE or Server JRE is no longer offered. Only JDK is offered.
  • Updated packaging format for Windows has changed from tar.gz to .zip
  • Updated package format for macOS has changed from .app to .dmg

New String methods

  • isBlank(): This is a boolean method. It just returns true when a string is empty and vice-versa.
  • lines(): This method is to return a collection of strings which are divided by line terminators.
  • repeat(n): Result is the concatenated string of original string repeated the number of times in the argument.
  • stripLeading(): It is used to remove the white-space which is in-front of the string
  • stripTrailing(): It is used to remove the white-space which is in back of the string
  • strip(): It is used to remove the white-spaces which are in-front and back of the string

New File Methods

  • writeString():- To write some content in a file.
  • readString():- To read the contents of a file.
  • isSameFile():-This method is used to know whether two paths locate the same file or not.

Pattern recognizing methods

  • asMatchPredicate():- This method will create a predicate if pattern matches with input string.

Epsilon Garbage Collector

This handles memory allocation, but does not have an actual memory reclamation mechanism. Once the available Java heap is exhausted, the JVM will shut down.

Removal of thread functions: stop(Throwable obj) and destroy() objects have been removed from the JDK 11 because they only throw UnSupportedOperation and NoSuchMethodError respectively.

  • TimeUnit Conversion: This method is used to convert the given time to a unit like DAY, MONTH, YEAR and for a time too.
  • Optional.isEmpty() This method returns true if the value of any object is null and else returns false.
  • Local-Variable Syntax for Lambda Parameters: JDK 11 allows ‘var’ to be used in lambda expressions.

Removed Features and Options

  1. com.sun.awt.AWTUtilities Class
  2. Lucida Fonts from Oracle JDK
  3. Appletviewer Launcher
  4. Oracle JDK’s javax.imageio JPEG Plugin No Longer Supports Images with alpha
  5. Sun.misc.Unsafe.defineClass
  6. Thread.destroy() and Thread.stop(Throwable) Methods
  7. sun.nio.ch.disableSystemWideOverlappingFileLockCheck Property
  8. sun.locale.formatasdefault Property
  9. JVM-MANAGEMENT-MIB.mib
  10. SNMP Agent
  11. Java Deployment Technologies
  12. JMC from the Oracle JDK
  13. JavaFX from the Oracle JDK

Deprecated Features and Options

  1. ThreadPoolExecutor Should Not Specify a Dependency on Finalization
  2. JEP 335 Deprecate the Nashorn JavaScript Engine
  3. Obsolete Support for Commercial Features
  4. Deprecate Stream-Based GSSContext Methods
  5. JEP 336 Deprecate the Pack200 Tools and API

Author: STEPS

Leave a Reply

Your email address will not be published. Required fields are marked *