Giter Club home page Giter Club logo

demo-jdk-features's Introduction

demo-jdk-features

JDK 8:

  • Introduction of lambda expressions.
  • Stream API for working with sequences of data.
  • Addition of the Optional class for safer handling of potentially absent values.
  • Inclusion of the java.time package for date and time manipulation.
  • Introduction of the @FunctionalInterface annotation for explicitly marking functional interfaces.

JDK 9:

  • Java Platform Module System (Project Jigsaw) for more flexible code organization and management.
  • Introduction of the java.util.concurrent.Flow module for reactive programming.
  • Default methods in interfaces.
  • Improvements in resource management with try-with-resources.

JDK 10:

  • Introduction of local variable type inference (var) for simplified variable declarations.
  • Addition of the copyOf() method in the Arrays class for creating immutable array copies.
  • Enhancements in code analysis and diagnostics with new tools.

JDK 11:

  • Introduction of the java.net.http module for easier and more convenient handling of HTTP requests.
  • Addition of methods in the String class for processing empty strings and checking content.
  • Performance and security improvements in the JVM.

JDK 12:

  • Introduction of new methods for string manipulation, such as indent(), transform(), describeConstable(), and others.
  • Enhancements in file handling and stream operations.
  • Addition of new experimental features like Switch Expressions and Raw String Literals.

JDK 13:

  • Introduction of the enhanced switch statement (Switch Expressions).
  • Improvements in JVM memory management and performance.

JDK 14:

  • Introduction of Records for creating immutable data classes.
  • Syntax and data type enhancements.
  • Performance and security improvements in the JVM.

JDK 15:

  • Introduction of the instanceof pattern matching operator for type comparisons without casting.
  • Addition of methods in the String class for processing empty strings and checking content.
  • Inclusion of Text Blocks for more convenient string manipulation.

JDK 16:

  • Addition of sealed classes to restrict class inheritance.
  • Introduction of the String::replaceAll() method for replacing all occurrences of a substring.
  • Performance and security improvements in the JVM.

JDK 17:

  • Introduction of Sealed Classes for further restricting class inheritance.
  • Addition of utility methods for working with arrays and collections.
  • Performance and security improvements in the JVM.

demo-jdk-features's People

Contributors

ik8u avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.