Java 8

  • PermGen replaced by Metaspace
  • Optional
  • Lamba
  • Stream api
  • Default and static methods in Interfaces
    • Why Default
      • To introduce backward compatibility - (of collection framework ?)
  • Concurrency improvements
  • forEach()

Java 9

  • Set.of()
  • modules

Java 11

Java 17

Java 21

  • Virtual threads

References

Good Articles

Java 8 - https://medium.com/@ucgorai/exploring-the-key-features-of-java-11-b1efb8425690 java 9 -