Skip to content

Java 15

Java 15 (2020):

  1. Sealed Classes (preview): Restrict which classes can extend a sealed class.
public sealed class Shape 
    permits Circle, Rectangle, Square {}
  1. Hidden Classes: Classes that cannot be used directly by the bytecode of other classes.

  2. Text Blocks (standard): The preview feature from Java 13 became standard.