The Java Version Almanac
javaalmanac.io
Feedback on this page?

New APIs in Java 24

Comparing Java 24 (24-ea+2-133-open) with Java 18 (18.0.2.1+1-tem).

Element Modification
java.base
    java.io
      BufferedInputStream
        • - final
        • + sealed
        InvalidClassException
          InvalidObjectException
            ObjectOutputStream.PutField
              • + forRemoval
              • + final
              ObjectStreamException
                PushbackInputStream
                  SequenceInputStream
                    java.lang.constant
                      ConstantDescs
                        ClassDesc
                          MethodHandleDesc
                            MethodTypeDesc
                              • + abstract
                              java.lang.invoke
                                • + sealed
                                ClassSpecializer.Factory
                                ClassSpecializer.SpeciesData
                                • + sealed
                                MethodHandles
                                  • + sealed
                                  • - final
                                  java.lang.module
                                    ModuleDescriptor.Exports
                                      ModuleDescriptor.Opens
                                        ModuleDescriptor.Requires
                                          ModuleDescriptor
                                            java.lang.ref
                                              ReferenceQueue
                                                • - throws IllegalArgumentException
                                                • + sealed
                                                java.lang.reflect
                                                  Executable
                                                    • + abstract
                                                    Field
                                                      Parameter
                                                        Member
                                                          java.lang.runtime
                                                            • - preview
                                                            java.lang
                                                              Character.UnicodeBlock
                                                                Character
                                                                  Class
                                                                    Compiler
                                                                    Double
                                                                      FdLibm.Cbrt
                                                                      FdLibm.Hypot
                                                                      FdLibm.Pow
                                                                      Float
                                                                        Integer
                                                                          Long
                                                                            Math
                                                                              ModuleLayer.Controller
                                                                                Module
                                                                                  StrictMath
                                                                                    • + implements Appendable
                                                                                    • + implements Appendable
                                                                                    String
                                                                                      • + deprecated
                                                                                      • + forRemoval
                                                                                      ThreadGroup
                                                                                        allowThreadSuspension(boolean)
                                                                                        resume()
                                                                                        stop()
                                                                                        suspend()
                                                                                        Thread
                                                                                          countStackFrames()
                                                                                          • + deprecated
                                                                                          resume()
                                                                                          suspend()
                                                                                          Character.UnicodeScript
                                                                                            StackWalker.Option
                                                                                              java.math
                                                                                                BigDecimal
                                                                                                  BigInteger
                                                                                                    java.net
                                                                                                      DatagramSocketImpl
                                                                                                        • + forRemoval
                                                                                                        • + forRemoval
                                                                                                        Inet4Address
                                                                                                          Inet6Address
                                                                                                            • + sealed
                                                                                                            MulticastSocket
                                                                                                              • + forRemoval
                                                                                                              • + forRemoval
                                                                                                              • + forRemoval
                                                                                                              SocketException
                                                                                                                Socket
                                                                                                                  • + forRemoval
                                                                                                                  • + forRemoval
                                                                                                                  URL
                                                                                                                    • + deprecated
                                                                                                                    • + deprecated
                                                                                                                    • + deprecated
                                                                                                                    • + deprecated
                                                                                                                    • + deprecated
                                                                                                                    • + deprecated
                                                                                                                    java.nio.channels
                                                                                                                      FileChannel
                                                                                                                        java.nio.charset
                                                                                                                          StandardCharsets
                                                                                                                            java.nio.file.spi
                                                                                                                              FileSystemProvider
                                                                                                                                java.nio.file
                                                                                                                                  Path
                                                                                                                                    java.nio
                                                                                                                                      • + sealed
                                                                                                                                      • + sealed
                                                                                                                                      • + sealed
                                                                                                                                      • + sealed
                                                                                                                                      • + sealed
                                                                                                                                      • + sealed
                                                                                                                                      • + sealed
                                                                                                                                      • + sealed
                                                                                                                                      • + sealed
                                                                                                                                      java.security.interfaces
                                                                                                                                        DSAKeyPairGenerator
                                                                                                                                          • - throws InvalidParameterException
                                                                                                                                          • - throws InvalidParameterException
                                                                                                                                          • + implements AlgorithmParameterSpec
                                                                                                                                          DSAPrivateKey
                                                                                                                                            DSAPublicKey
                                                                                                                                              ECPrivateKey
                                                                                                                                                ECPublicKey
                                                                                                                                                  EdECPrivateKey
                                                                                                                                                    EdECPublicKey
                                                                                                                                                      RSAPrivateKey
                                                                                                                                                        RSAPublicKey
                                                                                                                                                          XECPrivateKey
                                                                                                                                                            XECPublicKey
                                                                                                                                                              java.security.spec
                                                                                                                                                                PSSParameterSpec
                                                                                                                                                                  • + deprecated
                                                                                                                                                                  • + deprecated
                                                                                                                                                                  java.security
                                                                                                                                                                    InvalidParameterException
                                                                                                                                                                      • - implements Key
                                                                                                                                                                      • + implements AsymmetricKey
                                                                                                                                                                      • - implements Key
                                                                                                                                                                      • + implements AsymmetricKey
                                                                                                                                                                      java.text
                                                                                                                                                                        ChoiceFormat
                                                                                                                                                                          CompactNumberFormat
                                                                                                                                                                            DecimalFormatSymbols
                                                                                                                                                                              DecimalFormat
                                                                                                                                                                                MessageFormat
                                                                                                                                                                                  NumberFormat
                                                                                                                                                                                    SimpleDateFormat
                                                                                                                                                                                      java.time.chrono
                                                                                                                                                                                        IsoChronology
                                                                                                                                                                                          JapaneseChronology
                                                                                                                                                                                            MinguoChronology
                                                                                                                                                                                              ThaiBuddhistChronology
                                                                                                                                                                                                Chronology
                                                                                                                                                                                                  java.time.format
                                                                                                                                                                                                    DateTimeFormatterBuilder
                                                                                                                                                                                                      DateTimeFormatter
                                                                                                                                                                                                        java.time
                                                                                                                                                                                                          Instant
                                                                                                                                                                                                            • + sealed
                                                                                                                                                                                                            ZoneOffset
                                                                                                                                                                                                              java.util.concurrent
                                                                                                                                                                                                                CompletableFuture
                                                                                                                                                                                                                  • + final
                                                                                                                                                                                                                  ConcurrentSkipListMap
                                                                                                                                                                                                                    ConcurrentSkipListSet
                                                                                                                                                                                                                      CopyOnWriteArrayList
                                                                                                                                                                                                                        DelayQueue
                                                                                                                                                                                                                          Executors
                                                                                                                                                                                                                            ForkJoinPool
                                                                                                                                                                                                                              • + throws InterruptedException
                                                                                                                                                                                                                              ForkJoinTask
                                                                                                                                                                                                                                ForkJoinWorkerThread
                                                                                                                                                                                                                                  FutureTask
                                                                                                                                                                                                                                    • + final
                                                                                                                                                                                                                                    • + implements AutoCloseable
                                                                                                                                                                                                                                    Future
                                                                                                                                                                                                                                      java.util.random
                                                                                                                                                                                                                                        RandomGenerator
                                                                                                                                                                                                                                          java.util.regex
                                                                                                                                                                                                                                            Matcher
                                                                                                                                                                                                                                              Pattern
                                                                                                                                                                                                                                                MatchResult
                                                                                                                                                                                                                                                  java.util.spi
                                                                                                                                                                                                                                                    ToolProvider
                                                                                                                                                                                                                                                      java.util.stream
                                                                                                                                                                                                                                                        Stream
                                                                                                                                                                                                                                                          java.util.zip
                                                                                                                                                                                                                                                            Deflater
                                                                                                                                                                                                                                                              • + deprecated
                                                                                                                                                                                                                                                              • + deprecated
                                                                                                                                                                                                                                                              Inflater
                                                                                                                                                                                                                                                                • + deprecated
                                                                                                                                                                                                                                                                • + deprecated
                                                                                                                                                                                                                                                                ZipFile
                                                                                                                                                                                                                                                                  ZipInputStream
                                                                                                                                                                                                                                                                    java.util
                                                                                                                                                                                                                                                                      ArrayList
                                                                                                                                                                                                                                                                        • + final
                                                                                                                                                                                                                                                                        Collections
                                                                                                                                                                                                                                                                          • + sealed
                                                                                                                                                                                                                                                                          HashMap
                                                                                                                                                                                                                                                                            HashSet
                                                                                                                                                                                                                                                                              IdentityHashMap
                                                                                                                                                                                                                                                                                • + sealed
                                                                                                                                                                                                                                                                                • - implements Map
                                                                                                                                                                                                                                                                                • + implements SequencedMap
                                                                                                                                                                                                                                                                                • - implements Set
                                                                                                                                                                                                                                                                                • + implements SequencedSet
                                                                                                                                                                                                                                                                                LinkedList
                                                                                                                                                                                                                                                                                  Locale
                                                                                                                                                                                                                                                                                    • + deprecated
                                                                                                                                                                                                                                                                                    • + deprecated
                                                                                                                                                                                                                                                                                    • + deprecated
                                                                                                                                                                                                                                                                                    Objects
                                                                                                                                                                                                                                                                                      Random
                                                                                                                                                                                                                                                                                        TreeMap
                                                                                                                                                                                                                                                                                          TreeSet
                                                                                                                                                                                                                                                                                            WeakHashMap
                                                                                                                                                                                                                                                                                              • + implements SequencedCollection
                                                                                                                                                                                                                                                                                              • - implements Collection
                                                                                                                                                                                                                                                                                              • + implements SequencedCollection
                                                                                                                                                                                                                                                                                              NavigableMap
                                                                                                                                                                                                                                                                                                NavigableSet
                                                                                                                                                                                                                                                                                                  • - implements Map
                                                                                                                                                                                                                                                                                                  • + implements SequencedMap
                                                                                                                                                                                                                                                                                                  • + implements SequencedSet
                                                                                                                                                                                                                                                                                                  javax.crypto.interfaces
                                                                                                                                                                                                                                                                                                    DHPrivateKey
                                                                                                                                                                                                                                                                                                      DHPublicKey
                                                                                                                                                                                                                                                                                                        javax.crypto.spec
                                                                                                                                                                                                                                                                                                          OAEPParameterSpec
                                                                                                                                                                                                                                                                                                            • + deprecated
                                                                                                                                                                                                                                                                                                            javax.crypto
                                                                                                                                                                                                                                                                                                              javax.net.ssl
                                                                                                                                                                                                                                                                                                                SSLHandshakeException
                                                                                                                                                                                                                                                                                                                  SSLKeyException
                                                                                                                                                                                                                                                                                                                    SSLParameters
                                                                                                                                                                                                                                                                                                                      SSLPeerUnverifiedException
                                                                                                                                                                                                                                                                                                                        SSLProtocolException
                                                                                                                                                                                                                                                                                                                          SSLSessionContext
                                                                                                                                                                                                                                                                                                                            • - throws IllegalArgumentException
                                                                                                                                                                                                                                                                                                                            • - throws IllegalArgumentException
                                                                                                                                                                                                                                                                                                                            java.compiler
                                                                                                                                                                                                                                                                                                                              javax.lang.model.element
                                                                                                                                                                                                                                                                                                                                ElementKind
                                                                                                                                                                                                                                                                                                                                  RecordComponentElement
                                                                                                                                                                                                                                                                                                                                    VariableElement
                                                                                                                                                                                                                                                                                                                                      javax.lang.model.util
                                                                                                                                                                                                                                                                                                                                        ElementScanner6
                                                                                                                                                                                                                                                                                                                                          Elements
                                                                                                                                                                                                                                                                                                                                            Types
                                                                                                                                                                                                                                                                                                                                              javax.lang.model
                                                                                                                                                                                                                                                                                                                                                SourceVersion
                                                                                                                                                                                                                                                                                                                                                  javax.tools
                                                                                                                                                                                                                                                                                                                                                    SimpleJavaFileObject
                                                                                                                                                                                                                                                                                                                                                      java.desktop
                                                                                                                                                                                                                                                                                                                                                        java.awt.color
                                                                                                                                                                                                                                                                                                                                                          • + final
                                                                                                                                                                                                                                                                                                                                                          • + final
                                                                                                                                                                                                                                                                                                                                                          • + sealed
                                                                                                                                                                                                                                                                                                                                                          java.awt.desktop
                                                                                                                                                                                                                                                                                                                                                            • + sealed
                                                                                                                                                                                                                                                                                                                                                            • + sealed
                                                                                                                                                                                                                                                                                                                                                            java.awt.dnd
                                                                                                                                                                                                                                                                                                                                                              • + final
                                                                                                                                                                                                                                                                                                                                                              java.awt.event
                                                                                                                                                                                                                                                                                                                                                                • + sealed
                                                                                                                                                                                                                                                                                                                                                                java.awt.geom
                                                                                                                                                                                                                                                                                                                                                                  CubicCurve2D.Double
                                                                                                                                                                                                                                                                                                                                                                    getBounds2D()
                                                                                                                                                                                                                                                                                                                                                                    CubicCurve2D.Float
                                                                                                                                                                                                                                                                                                                                                                      getBounds2D()
                                                                                                                                                                                                                                                                                                                                                                      CubicCurve2D
                                                                                                                                                                                                                                                                                                                                                                        • + sealed
                                                                                                                                                                                                                                                                                                                                                                        QuadCurve2D.Double
                                                                                                                                                                                                                                                                                                                                                                          getBounds2D()
                                                                                                                                                                                                                                                                                                                                                                          QuadCurve2D.Float
                                                                                                                                                                                                                                                                                                                                                                            getBounds2D()
                                                                                                                                                                                                                                                                                                                                                                            QuadCurve2D
                                                                                                                                                                                                                                                                                                                                                                              java.awt.peer
                                                                                                                                                                                                                                                                                                                                                                                WindowPeer
                                                                                                                                                                                                                                                                                                                                                                                  java.awt
                                                                                                                                                                                                                                                                                                                                                                                    • + final
                                                                                                                                                                                                                                                                                                                                                                                    • + sealed
                                                                                                                                                                                                                                                                                                                                                                                    • + final
                                                                                                                                                                                                                                                                                                                                                                                    • + final
                                                                                                                                                                                                                                                                                                                                                                                    • + sealed
                                                                                                                                                                                                                                                                                                                                                                                    java.beans.beancontext
                                                                                                                                                                                                                                                                                                                                                                                      • + deprecated
                                                                                                                                                                                                                                                                                                                                                                                      • + forRemoval
                                                                                                                                                                                                                                                                                                                                                                                      • + deprecated
                                                                                                                                                                                                                                                                                                                                                                                      • + forRemoval
                                                                                                                                                                                                                                                                                                                                                                                      • + deprecated
                                                                                                                                                                                                                                                                                                                                                                                      • + forRemoval
                                                                                                                                                                                                                                                                                                                                                                                      • + deprecated
                                                                                                                                                                                                                                                                                                                                                                                      • + forRemoval
                                                                                                                                                                                                                                                                                                                                                                                      • + deprecated
                                                                                                                                                                                                                                                                                                                                                                                      • + forRemoval
                                                                                                                                                                                                                                                                                                                                                                                      • + deprecated
                                                                                                                                                                                                                                                                                                                                                                                      • + forRemoval
                                                                                                                                                                                                                                                                                                                                                                                      • + deprecated
                                                                                                                                                                                                                                                                                                                                                                                      • + forRemoval
                                                                                                                                                                                                                                                                                                                                                                                      • + deprecated
                                                                                                                                                                                                                                                                                                                                                                                      • + forRemoval
                                                                                                                                                                                                                                                                                                                                                                                      • + deprecated
                                                                                                                                                                                                                                                                                                                                                                                      • + forRemoval
                                                                                                                                                                                                                                                                                                                                                                                      • + deprecated
                                                                                                                                                                                                                                                                                                                                                                                      • + forRemoval
                                                                                                                                                                                                                                                                                                                                                                                      • + deprecated
                                                                                                                                                                                                                                                                                                                                                                                      • + forRemoval
                                                                                                                                                                                                                                                                                                                                                                                      • + deprecated
                                                                                                                                                                                                                                                                                                                                                                                      • + forRemoval
                                                                                                                                                                                                                                                                                                                                                                                      • + deprecated
                                                                                                                                                                                                                                                                                                                                                                                      • + forRemoval
                                                                                                                                                                                                                                                                                                                                                                                      • + deprecated
                                                                                                                                                                                                                                                                                                                                                                                      • + forRemoval
                                                                                                                                                                                                                                                                                                                                                                                      • + deprecated
                                                                                                                                                                                                                                                                                                                                                                                      • + forRemoval
                                                                                                                                                                                                                                                                                                                                                                                      • + deprecated
                                                                                                                                                                                                                                                                                                                                                                                      • + forRemoval
                                                                                                                                                                                                                                                                                                                                                                                      • + deprecated
                                                                                                                                                                                                                                                                                                                                                                                      • + forRemoval
                                                                                                                                                                                                                                                                                                                                                                                      • + deprecated
                                                                                                                                                                                                                                                                                                                                                                                      • + forRemoval
                                                                                                                                                                                                                                                                                                                                                                                      java.beans
                                                                                                                                                                                                                                                                                                                                                                                        Beans
                                                                                                                                                                                                                                                                                                                                                                                          • + deprecated
                                                                                                                                                                                                                                                                                                                                                                                          • + forRemoval
                                                                                                                                                                                                                                                                                                                                                                                          javax.print.attribute.standard
                                                                                                                                                                                                                                                                                                                                                                                            javax.sound.midi
                                                                                                                                                                                                                                                                                                                                                                                              • + final
                                                                                                                                                                                                                                                                                                                                                                                              javax.swing.plaf.basic
                                                                                                                                                                                                                                                                                                                                                                                                BasicDirectoryModel
                                                                                                                                                                                                                                                                                                                                                                                                  • + forRemoval
                                                                                                                                                                                                                                                                                                                                                                                                  • + forRemoval
                                                                                                                                                                                                                                                                                                                                                                                                  • + forRemoval
                                                                                                                                                                                                                                                                                                                                                                                                  • + forRemoval
                                                                                                                                                                                                                                                                                                                                                                                                  • + forRemoval
                                                                                                                                                                                                                                                                                                                                                                                                  • + forRemoval
                                                                                                                                                                                                                                                                                                                                                                                                  • + forRemoval
                                                                                                                                                                                                                                                                                                                                                                                                  • + forRemoval
                                                                                                                                                                                                                                                                                                                                                                                                  • + sealed
                                                                                                                                                                                                                                                                                                                                                                                                  BasicToolBarUI
                                                                                                                                                                                                                                                                                                                                                                                                    • + forRemoval
                                                                                                                                                                                                                                                                                                                                                                                                    javax.swing.plaf.synth
                                                                                                                                                                                                                                                                                                                                                                                                      SynthComboBoxUI
                                                                                                                                                                                                                                                                                                                                                                                                        SynthLookAndFeel
                                                                                                                                                                                                                                                                                                                                                                                                          • + deprecated
                                                                                                                                                                                                                                                                                                                                                                                                          • + forRemoval
                                                                                                                                                                                                                                                                                                                                                                                                          SynthPasswordFieldUI
                                                                                                                                                                                                                                                                                                                                                                                                            SynthTreeUI
                                                                                                                                                                                                                                                                                                                                                                                                              javax.swing.text.html
                                                                                                                                                                                                                                                                                                                                                                                                                AccessibleHTML.HTMLAccessibleContext
                                                                                                                                                                                                                                                                                                                                                                                                                  • + final
                                                                                                                                                                                                                                                                                                                                                                                                                  • + final
                                                                                                                                                                                                                                                                                                                                                                                                                  • + final
                                                                                                                                                                                                                                                                                                                                                                                                                  javax.swing.text
                                                                                                                                                                                                                                                                                                                                                                                                                    DefaultEditorKit
                                                                                                                                                                                                                                                                                                                                                                                                                      • + final
                                                                                                                                                                                                                                                                                                                                                                                                                      • + final
                                                                                                                                                                                                                                                                                                                                                                                                                      • + final
                                                                                                                                                                                                                                                                                                                                                                                                                      • + final
                                                                                                                                                                                                                                                                                                                                                                                                                      • + sealed
                                                                                                                                                                                                                                                                                                                                                                                                                      javax.swing
                                                                                                                                                                                                                                                                                                                                                                                                                        • + sealed
                                                                                                                                                                                                                                                                                                                                                                                                                        • + sealed
                                                                                                                                                                                                                                                                                                                                                                                                                        • + final
                                                                                                                                                                                                                                                                                                                                                                                                                        JFileChooser
                                                                                                                                                                                                                                                                                                                                                                                                                          JScrollBar
                                                                                                                                                                                                                                                                                                                                                                                                                            • + final
                                                                                                                                                                                                                                                                                                                                                                                                                            java.management.rmi
                                                                                                                                                                                                                                                                                                                                                                                                                              javax.management.remote.rmi
                                                                                                                                                                                                                                                                                                                                                                                                                                RMIConnector
                                                                                                                                                                                                                                                                                                                                                                                                                                  getMBeanServerConnection(Subject)
                                                                                                                                                                                                                                                                                                                                                                                                                                  RMIIIOPServerImpl
                                                                                                                                                                                                                                                                                                                                                                                                                                  java.management
                                                                                                                                                                                                                                                                                                                                                                                                                                    javax.management.loading
                                                                                                                                                                                                                                                                                                                                                                                                                                      MLetContent
                                                                                                                                                                                                                                                                                                                                                                                                                                      MLet
                                                                                                                                                                                                                                                                                                                                                                                                                                      PrivateMLet
                                                                                                                                                                                                                                                                                                                                                                                                                                      MLetMBean
                                                                                                                                                                                                                                                                                                                                                                                                                                      javax.management.remote
                                                                                                                                                                                                                                                                                                                                                                                                                                        JMXConnector
                                                                                                                                                                                                                                                                                                                                                                                                                                          • - abstract
                                                                                                                                                                                                                                                                                                                                                                                                                                          • + deprecated
                                                                                                                                                                                                                                                                                                                                                                                                                                          • + forRemoval
                                                                                                                                                                                                                                                                                                                                                                                                                                          java.net.http
                                                                                                                                                                                                                                                                                                                                                                                                                                            java.net.http
                                                                                                                                                                                                                                                                                                                                                                                                                                              • + implements AutoCloseable
                                                                                                                                                                                                                                                                                                                                                                                                                                              HttpClient.Builder
                                                                                                                                                                                                                                                                                                                                                                                                                                                java.xml.crypto
                                                                                                                                                                                                                                                                                                                                                                                                                                                  javax.xml.crypto.dsig
                                                                                                                                                                                                                                                                                                                                                                                                                                                    SignatureMethod
                                                                                                                                                                                                                                                                                                                                                                                                                                                      java.xml
                                                                                                                                                                                                                                                                                                                                                                                                                                                        javax.xml.catalog
                                                                                                                                                                                                                                                                                                                                                                                                                                                          CatalogManager
                                                                                                                                                                                                                                                                                                                                                                                                                                                            GroupEntry.ResolveType

                                                                                                                                                                                                                                                                                                                                                                                                                                                            This report is based on simple comparison of all public and protected APIs of the java.* and javax.* packages of JDK builds 24-ea+2-133-open and 18.0.2.1+1-tem. It does not make statements about compatibility.

                                                                                                                                                                                                                                                                                                                                                                                                                                                            For the latest Java versions the corresponding CSRs (Compatibility & Specification Review) are linked for a quick reference to find out about the reasoning of the change.