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

New APIs in Java 23

Comparing Java 23 (23-ea+12-893-open) with Java 19 (19.0.2+7-tem).

Element Modification
java.base
    java.io
      BufferedInputStream
        • - final
        • + sealed
        DataInputStream
          • - final
          PushbackInputStream
            SequenceInputStream
              java.lang.constant
                ConstantDescs
                  ClassDesc
                    MethodHandleDesc
                      MethodTypeDesc
                        • + abstract
                        java.lang.foreign
                          ValueLayout.OfAddress
                          • removed preview
                          Addressable
                          • - preview
                          • + abstract
                          • + abstract
                          • + abstract
                          asVariadic(MemoryLayout...)
                          • + abstract
                          • + abstract
                          equals(Object)
                          firstVariadicArgumentIndex()
                          hashCode()
                          • + abstract
                          • + abstract
                          toString()
                          • - extends AbstractLayout
                          • - final
                          • - preview
                          • + abstract
                          • + extends Object
                          • + sealed
                          equals(Object)
                          hashCode()
                          isStruct()
                          isUnion()
                          • + abstract
                          toString()
                          withBitAlignment(long)
                          • + abstract
                          • - preview
                          downcallHandle(Addressable, FunctionDescriptor)
                          downcallHandle(FunctionDescriptor)
                          downcallType(FunctionDescriptor)
                          upcallStub(MethodHandle, FunctionDescriptor,...
                          upcallType(FunctionDescriptor)
                          MemoryAddress
                          • - preview
                          • - preview
                          bitAlignment()
                          bitOffset(MemoryLayout.PathElement...)
                          bitOffsetHandle(MemoryLayout.PathElement...)
                          bitSize()
                          • + abstract
                          • + abstract
                          • + abstract
                          isPadding()
                          paddingLayout(long)
                          • + abstract
                          • + abstract
                          structLayout(MemoryLayout...)
                          unionLayout(MemoryLayout...)
                          valueLayout(Class, ByteOrder)
                          • + abstract
                          withBitAlignment(long)
                          • - implements Addressable
                          • - preview
                          address()
                          allocateNative(MemoryLayout, MemorySession)
                          allocateNative(long, MemorySession)
                          allocateNative(long, long, MemorySession)
                          • + abstract
                          • + abstract
                          get(ValueLayout.OfAddress, long)
                          • + abstract
                          • + abstract
                          • + abstract
                          • + abstract
                          • + abstract
                          • + abstract
                          • + abstract
                          • + abstract
                          getAtIndex(ValueLayout.OfAddress, long)
                          • + abstract
                          • + abstract
                          • + abstract
                          • + abstract
                          • + abstract
                          • + abstract
                          getUtf8String(long)
                          ofAddress(MemoryAddress, long, MemorySession)
                          segmentOffset(MemorySegment)
                          session()
                          set(ValueLayout.OfAddress, long, Addressable)
                          • + abstract
                          • + abstract
                          • + abstract
                          • + abstract
                          • + abstract
                          • + abstract
                          • + abstract
                          • + abstract
                          setAtIndex(ValueLayout.OfAddress, long,...
                          • + abstract
                          • + abstract
                          • + abstract
                          • + abstract
                          • + abstract
                          • + abstract
                          setUtf8String(long, String)
                          MemorySession
                          • - preview
                          allocate(ValueLayout.OfAddress, Addressable)
                          allocate(ValueLayout.OfByte, byte)
                          allocate(ValueLayout.OfChar, char)
                          allocate(ValueLayout.OfDouble, double)
                          allocate(ValueLayout.OfFloat, float)
                          allocate(ValueLayout.OfInt, int)
                          allocate(ValueLayout.OfLong, long)
                          allocate(ValueLayout.OfShort, short)
                          allocateArray(MemoryLayout, long)
                          allocateArray(ValueLayout.OfByte, byte...)
                          allocateArray(ValueLayout.OfChar, char...)
                          allocateArray(ValueLayout.OfDouble, double...)
                          allocateArray(ValueLayout.OfFloat, float...)
                          allocateArray(ValueLayout.OfInt, int...)
                          allocateArray(ValueLayout.OfLong, long...)
                          allocateArray(ValueLayout.OfShort, short...)
                          allocateUtf8String(String)
                          implicitAllocator()
                          newNativeArena(MemorySession)
                          newNativeArena(long, MemorySession)
                          newNativeArena(long, long, MemorySession)
                          • - extends AbstractLayout
                          • - final
                          • - preview
                          • + abstract
                          • + extends Object
                          • + sealed
                          • + abstract
                          • + abstract
                          equals(Object)
                          • + abstract
                          hashCode()
                          • + abstract
                          toString()
                          withBitAlignment(long)
                          • + abstract
                          • + abstract
                          • - preview
                          libraryLookup(Path, MemorySession)
                          libraryLookup(String, MemorySession)
                          lookup(String)
                          VaList.Builder
                          VaList
                          • - extends ValueLayout
                          • - final
                          • - preview
                          • + abstract
                          • + extends Object
                          • + implements ValueLayout
                          • + sealed
                          withBitAlignment(long)
                          • + abstract
                          • + abstract
                          • - extends ValueLayout
                          • - final
                          • - preview
                          • + abstract
                          • + extends Object
                          • + implements ValueLayout
                          • + sealed
                          withBitAlignment(long)
                          • + abstract
                          • + abstract
                          • - extends ValueLayout
                          • - final
                          • - preview
                          • + abstract
                          • + extends Object
                          • + implements ValueLayout
                          • + sealed
                          withBitAlignment(long)
                          • + abstract
                          • + abstract
                          • - extends ValueLayout
                          • - final
                          • - preview
                          • + abstract
                          • + extends Object
                          • + implements ValueLayout
                          • + sealed
                          withBitAlignment(long)
                          • + abstract
                          • + abstract
                          • - extends ValueLayout
                          • - final
                          • - preview
                          • + abstract
                          • + extends Object
                          • + implements ValueLayout
                          • + sealed
                          withBitAlignment(long)
                          • + abstract
                          • + abstract
                          • - extends ValueLayout
                          • - final
                          • - preview
                          • + abstract
                          • + extends Object
                          • + implements ValueLayout
                          • + sealed
                          withBitAlignment(long)
                          • + abstract
                          • + abstract
                          • - extends ValueLayout
                          • - final
                          • - preview
                          • + abstract
                          • + extends Object
                          • + implements ValueLayout
                          • + sealed
                          withBitAlignment(long)
                          • + abstract
                          • + abstract
                          • - extends ValueLayout
                          • - final
                          • - preview
                          • + abstract
                          • + extends Object
                          • + implements ValueLayout
                          • + sealed
                          withBitAlignment(long)
                          • + abstract
                          • + abstract
                          • - extends AbstractLayout
                          • - preview
                          • + abstract
                          • + extends Object
                          arrayElementVarHandle(int...)
                          • + abstract
                          equals(Object)
                          hashCode()
                          • + abstract
                          toString()
                          withBitAlignment(long)
                          • + abstract
                          • + abstract
                          java.lang.invoke
                            ClassSpecializer.Factory
                            ClassSpecializer.SpeciesData
                            MethodHandles
                              • - preview
                              • - preview
                              • - preview
                              • - preview
                              • - preview
                              memorySegmentViewVarHandle(ValueLayout)
                              • - preview
                              StringConcatFactory
                                VarHandle
                                  • - final
                                  java.lang.module
                                    ModuleDescriptor.Exports
                                      ModuleDescriptor.Opens
                                        ModuleDescriptor.Requires
                                          ModuleDescriptor
                                            java.lang.reflect
                                              Executable
                                                • + abstract
                                                Field
                                                  Parameter
                                                    Member
                                                      java.lang.runtime
                                                        • - preview
                                                        java.lang
                                                          Character.UnicodeBlock
                                                            Character
                                                              Class
                                                                Compiler
                                                                FdLibm.Cbrt
                                                                FdLibm.Hypot
                                                                FdLibm.Pow
                                                                Float
                                                                  • - preview
                                                                  Math
                                                                    ModuleLayer.Controller
                                                                      Module
                                                                        StrictMath
                                                                          • + implements Appendable
                                                                          • + implements Appendable
                                                                          String
                                                                            • + deprecated
                                                                            • + forRemoval
                                                                            ThreadGroup
                                                                              allowThreadSuspension(boolean)
                                                                              resume()
                                                                              stop()
                                                                              suspend()
                                                                              Thread
                                                                                countStackFrames()
                                                                                • - preview
                                                                                • - preview
                                                                                • - preview
                                                                                resume()
                                                                                • - preview
                                                                                suspend()
                                                                                Character.UnicodeScript
                                                                                  StackWalker.Option
                                                                                    • - preview
                                                                                    allowSetThreadLocals(boolean)
                                                                                    • - preview
                                                                                    allowSetThreadLocals(boolean)
                                                                                    • - preview
                                                                                    allowSetThreadLocals(boolean)
                                                                                    java.net
                                                                                      Inet4Address
                                                                                        Inet6Address
                                                                                          InetAddress
                                                                                            URL
                                                                                              • + deprecated
                                                                                              • + deprecated
                                                                                              • + deprecated
                                                                                              • + deprecated
                                                                                              • + deprecated
                                                                                              • + deprecated
                                                                                              java.nio.channels
                                                                                                FileChannel
                                                                                                  map(FileChannel.MapMode, long, long,...
                                                                                                  java.nio.charset
                                                                                                    StandardCharsets
                                                                                                      java.nio.file.spi
                                                                                                        FileSystemProvider
                                                                                                          java.nio.file
                                                                                                            Path
                                                                                                              java.security.interfaces
                                                                                                                DSAKeyPairGenerator
                                                                                                                  • - throws InvalidParameterException
                                                                                                                  • - throws InvalidParameterException
                                                                                                                  • + implements AlgorithmParameterSpec
                                                                                                                  DSAPrivateKey
                                                                                                                    DSAPublicKey
                                                                                                                      ECPrivateKey
                                                                                                                        ECPublicKey
                                                                                                                          EdECPrivateKey
                                                                                                                            EdECPublicKey
                                                                                                                              RSAPrivateKey
                                                                                                                                RSAPublicKey
                                                                                                                                  XECPrivateKey
                                                                                                                                    XECPublicKey
                                                                                                                                      java.security
                                                                                                                                        InvalidParameterException
                                                                                                                                          • - implements Key
                                                                                                                                          • + implements AsymmetricKey
                                                                                                                                          • - implements Key
                                                                                                                                          • + implements AsymmetricKey
                                                                                                                                          java.text
                                                                                                                                            ChoiceFormat
                                                                                                                                              CompactNumberFormat
                                                                                                                                                DecimalFormat
                                                                                                                                                  MessageFormat
                                                                                                                                                    SimpleDateFormat
                                                                                                                                                      java.util.concurrent
                                                                                                                                                        ConcurrentSkipListMap
                                                                                                                                                          ConcurrentSkipListSet
                                                                                                                                                            CopyOnWriteArrayList
                                                                                                                                                              DelayQueue
                                                                                                                                                                Executors
                                                                                                                                                                  • - preview
                                                                                                                                                                  • - preview
                                                                                                                                                                  ForkJoinPool
                                                                                                                                                                    • + throws InterruptedException
                                                                                                                                                                    ForkJoinTask
                                                                                                                                                                      ForkJoinWorkerThread
                                                                                                                                                                        java.util.random
                                                                                                                                                                          RandomGenerator
                                                                                                                                                                            java.util.regex
                                                                                                                                                                              Matcher
                                                                                                                                                                                Pattern
                                                                                                                                                                                  MatchResult
                                                                                                                                                                                    java.util.stream
                                                                                                                                                                                      Stream
                                                                                                                                                                                        java.util.zip
                                                                                                                                                                                          ZipFile
                                                                                                                                                                                            ZipInputStream
                                                                                                                                                                                              java.util
                                                                                                                                                                                                ArrayList
                                                                                                                                                                                                  • + final
                                                                                                                                                                                                  Collections
                                                                                                                                                                                                    IdentityHashMap
                                                                                                                                                                                                      • - implements Map
                                                                                                                                                                                                      • + implements SequencedMap
                                                                                                                                                                                                      • - implements Set
                                                                                                                                                                                                      • + implements SequencedSet
                                                                                                                                                                                                      LinkedList
                                                                                                                                                                                                        Locale
                                                                                                                                                                                                          TreeMap
                                                                                                                                                                                                            TreeSet
                                                                                                                                                                                                              • + implements SequencedCollection
                                                                                                                                                                                                              • - implements Collection
                                                                                                                                                                                                              • + implements SequencedCollection
                                                                                                                                                                                                              NavigableMap
                                                                                                                                                                                                                NavigableSet
                                                                                                                                                                                                                  • - implements Map
                                                                                                                                                                                                                  • + implements SequencedMap
                                                                                                                                                                                                                  • + implements SequencedSet
                                                                                                                                                                                                                  javax.crypto.interfaces
                                                                                                                                                                                                                    DHPrivateKey
                                                                                                                                                                                                                      DHPublicKey
                                                                                                                                                                                                                        javax.crypto
                                                                                                                                                                                                                          javax.net.ssl
                                                                                                                                                                                                                            KeyManagerFactory
                                                                                                                                                                                                                              • + final
                                                                                                                                                                                                                              SSLParameters
                                                                                                                                                                                                                                TrustManagerFactory
                                                                                                                                                                                                                                  • + final
                                                                                                                                                                                                                                  java.compiler
                                                                                                                                                                                                                                    javax.lang.model.element
                                                                                                                                                                                                                                      RecordComponentElement
                                                                                                                                                                                                                                        VariableElement
                                                                                                                                                                                                                                          javax.lang.model.util
                                                                                                                                                                                                                                            ElementScanner6
                                                                                                                                                                                                                                              Elements
                                                                                                                                                                                                                                                Types
                                                                                                                                                                                                                                                  javax.lang.model
                                                                                                                                                                                                                                                    SourceVersion
                                                                                                                                                                                                                                                      java.desktop
                                                                                                                                                                                                                                                        java.awt.peer
                                                                                                                                                                                                                                                          WindowPeer
                                                                                                                                                                                                                                                            javax.swing.plaf.synth
                                                                                                                                                                                                                                                              SynthComboBoxUI
                                                                                                                                                                                                                                                                SynthLookAndFeel
                                                                                                                                                                                                                                                                  • + deprecated
                                                                                                                                                                                                                                                                  • + forRemoval
                                                                                                                                                                                                                                                                  SynthPasswordFieldUI
                                                                                                                                                                                                                                                                    SynthTreeUI
                                                                                                                                                                                                                                                                      javax.swing.text.html
                                                                                                                                                                                                                                                                        AccessibleHTML.HTMLAccessibleContext
                                                                                                                                                                                                                                                                          javax.swing.text
                                                                                                                                                                                                                                                                            DefaultEditorKit
                                                                                                                                                                                                                                                                              javax.swing
                                                                                                                                                                                                                                                                                JFileChooser
                                                                                                                                                                                                                                                                                  JScrollBar
                                                                                                                                                                                                                                                                                    • added
                                                                                                                                                                                                                                                                                    • added
                                                                                                                                                                                                                                                                                    java.management.rmi
                                                                                                                                                                                                                                                                                      javax.management.remote.rmi
                                                                                                                                                                                                                                                                                        RMIIIOPServerImpl
                                                                                                                                                                                                                                                                                        java.management
                                                                                                                                                                                                                                                                                          javax.management.loading
                                                                                                                                                                                                                                                                                            MLetContent
                                                                                                                                                                                                                                                                                            MLet
                                                                                                                                                                                                                                                                                            PrivateMLet
                                                                                                                                                                                                                                                                                            MLetMBean
                                                                                                                                                                                                                                                                                            javax.management.remote
                                                                                                                                                                                                                                                                                              JMXConnector
                                                                                                                                                                                                                                                                                                • + deprecated
                                                                                                                                                                                                                                                                                                • + forRemoval
                                                                                                                                                                                                                                                                                                java.net.http
                                                                                                                                                                                                                                                                                                  java.net.http
                                                                                                                                                                                                                                                                                                    • + implements AutoCloseable
                                                                                                                                                                                                                                                                                                    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 23-ea+12-893-open and 19.0.2+7-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.

                                                                                                                                                                                                                                                                                                                More detailed API comparisons based on the japicmp tool can be found here.