Saturday 2 September 2017

what are Java features ?

Java 5 Features:


    > For-each loop
    > Autoboxing and Unboxing
    > Covariant Return Type
    > Annotation
    > Generics
    > Enum
    > Static Import
    > Varargs
    


Java 6 Features:


> Instrumentation (premain method)

Java 7 Features:


 > String in switch statement
    > Binary Literals
    > The try-with-resources
    > Caching Multiple Exceptions by single catch
    > Underscores in Numeric Literals

Java 8 Features:


> Lambda Expressions
    > Pipelines and Streams
    > Date and Time API
    > Default Methods
    > Type Annotations
    > Nashhorn JavaScript Engine
    > Concurrent Accumulators
    > Parallel operations
    > PermGen Error Removed
    > TLS SNI

Java 9 Features:


  > A light-weight JSON API - which is a source of great speculation right now about how truly useful this
      feature will be (as proposed by the community process).
    > A HTTP 2 Client  - for HTTP 2.0 and websockets.
    > Process API Improvements  - to improve the API for controlling and managing OS processes.
    > Improved contended locking -for increasing performance between threads.
    > Segmented Code Cache - to improved execution time for complicated benchmarks.
    > Smart Java Compilation (Part 2) - Makes the sjavac tool available in the default JDK.
    > Modular Source Code - organizes JDK source code into modules.

!! HAPPY LEARNING

write your review and suggestion. 




No comments:

Post a Comment