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

New APIs in Java 25

Comparing Java 25 (25-ea+11-1205-open) with Java 21 (21.0.6+7-LTS-tem).

Element Modification
java.base
    java.io
      Console
        ObjectInputStream
          • - throws SecurityException
          • - throws SecurityException
          ObjectOutputStream.PutField
            • + forRemoval
            ObjectOutputStream
              • - throws SecurityException
              • - throws SecurityException
              • + final
              Reader
                java.lang.constant
                  • + final
                  ClassDesc
                    • + abstract
                    • + abstract
                    • + abstract
                    java.lang.foreign
                      • - preview
                      • - preview
                      • + abstract
                      • - preview
                      • - preview
                      • - preview
                      isTrivial()
                      • - preview
                      • - preview
                      • - preview
                      • + abstract
                      • + abstract
                      • + abstract
                      sequenceLayout(MemoryLayout)
                      • + abstract
                      • + abstract
                      • - preview
                      • - preview
                      • + abstract
                      • + abstract
                      • + abstract
                      • + abstract
                      • + abstract
                      • + abstract
                      • + abstract
                      • + abstract
                      • + abstract
                      • + abstract
                      • + abstract
                      • + abstract
                      • + abstract
                      • + abstract
                      • + abstract
                      • + abstract
                      • + abstract
                      • + abstract
                      • + abstract
                      • + abstract
                      getUtf8String(long)
                      • + abstract
                      segmentOffset(MemorySegment)
                      • + abstract
                      • + abstract
                      • + abstract
                      • + abstract
                      • + abstract
                      • + abstract
                      • + abstract
                      • + abstract
                      • + abstract
                      • + abstract
                      • + abstract
                      • + abstract
                      • + abstract
                      • + abstract
                      • + abstract
                      • + abstract
                      • + abstract
                      • + abstract
                      setUtf8String(long, String)
                      • - preview
                      • - preview
                      allocate(AddressLayout, MemorySegment)
                      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)
                      • - preview
                      • - preview
                      • - preview
                      • - preview
                      • - preview
                      • - preview
                      • - preview
                      • - preview
                      • - preview
                      • - preview
                      • - preview
                      • - preview
                      • - preview
                      arrayElementVarHandle(int...)
                      java.lang.invoke
                        • + final
                        • + final
                        • - preview
                        • - preview
                        • - preview
                        • - preview
                        • - preview
                        memorySegmentViewVarHandle(ValueLayout)
                        • - preview
                        StringConcatFactory
                          MAX_INDY_CONCAT_ARG_SLOTS
                          makeConcatWithTemplate(List, List)
                          makeConcatWithTemplateCluster(List, List, int)
                          makeConcatWithTemplateGetters(List, List, int)
                          java.lang.module
                            • + final
                            java.lang.reflect
                              • + final
                              ClassFileFormatVersion
                                java.lang.runtime
                                  • + final
                                  • + final
                                  TemplateRuntime
                                  java.lang
                                    Character.UnicodeBlock
                                      Class
                                        • - throws SecurityException
                                        • - throws SecurityException
                                        • - throws SecurityException
                                        • - throws SecurityException
                                        • - throws SecurityException
                                        • - throws SecurityException
                                        • - throws SecurityException
                                        • - throws SecurityException
                                        • - throws SecurityException
                                        • - throws SecurityException
                                        • - throws SecurityException
                                        • - throws SecurityException
                                        • - throws SecurityException
                                        • - throws SecurityException
                                        • - throws SecurityException
                                        • - throws SecurityException
                                        • - throws SecurityException
                                        isUnnamedClass()
                                        ModuleLayer.Controller
                                          • - preview
                                          Module
                                            • - preview
                                            • + final
                                            Process
                                              • + final
                                              ScopedValue.Carrier
                                                call(Callable)
                                                get(Supplier)
                                                ScopedValue
                                                  callWhere(ScopedValue, Object, Callable)
                                                  getWhere(ScopedValue, Object, Supplier)
                                                  runWhere(ScopedValue, Object, Runnable)
                                                  SecurityManager
                                                    • - deprecated
                                                    • - forRemoval
                                                    ThreadGroup
                                                      resume()
                                                      stop()
                                                      suspend()
                                                      Thread
                                                        countStackFrames()
                                                        resume()
                                                        suspend()
                                                        Character.UnicodeScript
                                                          StackWalker.Option
                                                            StringTemplate.Processor.Linkage
                                                            StringTemplate.Processor
                                                            StringTemplate
                                                            java.net
                                                              DatagramSocketImpl
                                                                • + forRemoval
                                                                • + forRemoval
                                                                Inet4Address
                                                                  Inet6Address
                                                                    InetAddress
                                                                      • + final
                                                                      MulticastSocket
                                                                        • + forRemoval
                                                                        • + forRemoval
                                                                        • + forRemoval
                                                                        Socket
                                                                          • + forRemoval
                                                                          • + forRemoval
                                                                          • + final
                                                                          • + final
                                                                          java.nio.channels
                                                                            FileChannel
                                                                              • - preview
                                                                              java.nio.charset
                                                                                • + final
                                                                                • + final
                                                                                StandardCharsets
                                                                                  java.nio.file
                                                                                    Path
                                                                                      java.security.interfaces
                                                                                        • + implements AlgorithmParameterSpec
                                                                                        DSAPrivateKey
                                                                                          DSAPublicKey
                                                                                            ECPrivateKey
                                                                                              ECPublicKey
                                                                                                EdECPrivateKey
                                                                                                  EdECPublicKey
                                                                                                    RSAPrivateKey
                                                                                                      RSAPublicKey
                                                                                                        XECPrivateKey
                                                                                                          XECPublicKey
                                                                                                            java.security.spec
                                                                                                              NamedParameterSpec
                                                                                                                java.security
                                                                                                                  • + final
                                                                                                                  • - implements Key
                                                                                                                  • + implements AsymmetricKey
                                                                                                                  • - implements Key
                                                                                                                  • + implements AsymmetricKey
                                                                                                                  java.text
                                                                                                                    ChoiceFormat
                                                                                                                      CompactNumberFormat
                                                                                                                        DecimalFormat
                                                                                                                          MessageFormat
                                                                                                                            NumberFormat
                                                                                                                              SimpleDateFormat
                                                                                                                                java.time
                                                                                                                                  Instant
                                                                                                                                    java.util.concurrent.locks
                                                                                                                                      • + final
                                                                                                                                      java.util.concurrent
                                                                                                                                        • + final
                                                                                                                                        ForkJoinPool
                                                                                                                                          • + throws InterruptedException
                                                                                                                                          ForkJoinTask
                                                                                                                                            java.util.random
                                                                                                                                              RandomGenerator
                                                                                                                                                java.util.stream
                                                                                                                                                  Stream
                                                                                                                                                    java.util.zip
                                                                                                                                                      • + implements AutoCloseable
                                                                                                                                                      • + deprecated
                                                                                                                                                      • + deprecated
                                                                                                                                                      • + implements AutoCloseable
                                                                                                                                                      • + deprecated
                                                                                                                                                      • + deprecated
                                                                                                                                                      • + deprecated
                                                                                                                                                      • + forRemoval
                                                                                                                                                      ZipFile
                                                                                                                                                        java.util
                                                                                                                                                          • + final
                                                                                                                                                          • + final
                                                                                                                                                          Currency
                                                                                                                                                            FormatProcessor
                                                                                                                                                            • + final
                                                                                                                                                            TimeZone
                                                                                                                                                              javax.crypto.interfaces
                                                                                                                                                                DHPrivateKey
                                                                                                                                                                  DHPublicKey
                                                                                                                                                                    javax.crypto.spec
                                                                                                                                                                      javax.crypto
                                                                                                                                                                        java.compiler
                                                                                                                                                                          javax.lang.model.element
                                                                                                                                                                            RecordComponentElement
                                                                                                                                                                              TypeElement
                                                                                                                                                                                isUnnamed()
                                                                                                                                                                                VariableElement
                                                                                                                                                                                  • - preview
                                                                                                                                                                                  javax.lang.model.util
                                                                                                                                                                                    ElementScanner6
                                                                                                                                                                                      Elements
                                                                                                                                                                                        Types
                                                                                                                                                                                          javax.lang.model
                                                                                                                                                                                            SourceVersion
                                                                                                                                                                                              javax.tools
                                                                                                                                                                                                SimpleJavaFileObject
                                                                                                                                                                                                  java.desktop
                                                                                                                                                                                                    java.awt.peer
                                                                                                                                                                                                      WindowPeer
                                                                                                                                                                                                        repositionSecurityWarning()
                                                                                                                                                                                                        java.awt
                                                                                                                                                                                                          • + deprecated
                                                                                                                                                                                                          • + forRemoval
                                                                                                                                                                                                          KeyboardFocusManager
                                                                                                                                                                                                            • - throws SecurityException
                                                                                                                                                                                                            • - throws SecurityException
                                                                                                                                                                                                            • - throws SecurityException
                                                                                                                                                                                                            • - throws SecurityException
                                                                                                                                                                                                            • - throws SecurityException
                                                                                                                                                                                                            • - throws SecurityException
                                                                                                                                                                                                            • - throws SecurityException
                                                                                                                                                                                                            • - throws SecurityException
                                                                                                                                                                                                            • - throws SecurityException
                                                                                                                                                                                                            • - throws SecurityException
                                                                                                                                                                                                            • - throws SecurityException
                                                                                                                                                                                                            • - throws SecurityException
                                                                                                                                                                                                            Window
                                                                                                                                                                                                              • + deprecated
                                                                                                                                                                                                              • + forRemoval
                                                                                                                                                                                                              • - throws SecurityException
                                                                                                                                                                                                              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
                                                                                                                                                                                                                    • - throws SecurityException
                                                                                                                                                                                                                    • - throws SecurityException
                                                                                                                                                                                                                    javax.print.attribute.standard
                                                                                                                                                                                                                      javax.sound.sampled
                                                                                                                                                                                                                        • + deprecated
                                                                                                                                                                                                                        • + forRemoval
                                                                                                                                                                                                                        javax.swing.plaf.basic
                                                                                                                                                                                                                          BasicSliderUI
                                                                                                                                                                                                                            BasicSliderUI()
                                                                                                                                                                                                                            BasicSplitPaneDivider
                                                                                                                                                                                                                              javax.swing.plaf.synth
                                                                                                                                                                                                                                SynthTreeUI
                                                                                                                                                                                                                                  javax.swing
                                                                                                                                                                                                                                    FocusManager
                                                                                                                                                                                                                                      • - throws SecurityException
                                                                                                                                                                                                                                      JFileChooser
                                                                                                                                                                                                                                        JInternalFrame
                                                                                                                                                                                                                                          • + deprecated
                                                                                                                                                                                                                                          • + forRemoval
                                                                                                                                                                                                                                          JScrollBar
                                                                                                                                                                                                                                            JSplitPane
                                                                                                                                                                                                                                              UIManager
                                                                                                                                                                                                                                                • - throws SecurityException
                                                                                                                                                                                                                                                java.logging
                                                                                                                                                                                                                                                  java.util.logging
                                                                                                                                                                                                                                                    FileHandler
                                                                                                                                                                                                                                                      • - throws SecurityException
                                                                                                                                                                                                                                                      • - throws SecurityException
                                                                                                                                                                                                                                                      • - throws SecurityException
                                                                                                                                                                                                                                                      • - throws SecurityException
                                                                                                                                                                                                                                                      • - throws SecurityException
                                                                                                                                                                                                                                                      • - throws SecurityException
                                                                                                                                                                                                                                                      Handler
                                                                                                                                                                                                                                                        • - throws SecurityException
                                                                                                                                                                                                                                                        • - throws SecurityException
                                                                                                                                                                                                                                                        • - throws SecurityException
                                                                                                                                                                                                                                                        • - throws SecurityException
                                                                                                                                                                                                                                                        • - throws SecurityException
                                                                                                                                                                                                                                                        LogManager
                                                                                                                                                                                                                                                          • - throws SecurityException
                                                                                                                                                                                                                                                          • - throws SecurityException
                                                                                                                                                                                                                                                          • - throws SecurityException
                                                                                                                                                                                                                                                          • - throws SecurityException
                                                                                                                                                                                                                                                          Logger
                                                                                                                                                                                                                                                            • - throws SecurityException
                                                                                                                                                                                                                                                            • - throws SecurityException
                                                                                                                                                                                                                                                            • - throws SecurityException
                                                                                                                                                                                                                                                            • - throws SecurityException
                                                                                                                                                                                                                                                            MemoryHandler
                                                                                                                                                                                                                                                              • - throws SecurityException
                                                                                                                                                                                                                                                              • - throws SecurityException
                                                                                                                                                                                                                                                              SocketHandler
                                                                                                                                                                                                                                                                • - throws SecurityException
                                                                                                                                                                                                                                                                StreamHandler
                                                                                                                                                                                                                                                                  • - throws SecurityException
                                                                                                                                                                                                                                                                  • - throws SecurityException
                                                                                                                                                                                                                                                                  • - throws SecurityException
                                                                                                                                                                                                                                                                  java.management.rmi
                                                                                                                                                                                                                                                                    javax.management.remote.rmi
                                                                                                                                                                                                                                                                      RMIConnector
                                                                                                                                                                                                                                                                        getMBeanServerConnection(Subject)
                                                                                                                                                                                                                                                                        java.management
                                                                                                                                                                                                                                                                          java.lang.management
                                                                                                                                                                                                                                                                            • + deprecated
                                                                                                                                                                                                                                                                            • + forRemoval
                                                                                                                                                                                                                                                                            javax.management.loading
                                                                                                                                                                                                                                                                              MLetContent
                                                                                                                                                                                                                                                                              MLet
                                                                                                                                                                                                                                                                              PrivateMLet
                                                                                                                                                                                                                                                                              MLetMBean
                                                                                                                                                                                                                                                                              javax.management.remote
                                                                                                                                                                                                                                                                                • + deprecated
                                                                                                                                                                                                                                                                                • + forRemoval
                                                                                                                                                                                                                                                                                JMXConnector
                                                                                                                                                                                                                                                                                  • - abstract
                                                                                                                                                                                                                                                                                  javax.management
                                                                                                                                                                                                                                                                                    • + deprecated
                                                                                                                                                                                                                                                                                    • + forRemoval
                                                                                                                                                                                                                                                                                    • + deprecated
                                                                                                                                                                                                                                                                                    • + forRemoval
                                                                                                                                                                                                                                                                                    • + deprecated
                                                                                                                                                                                                                                                                                    • + forRemoval
                                                                                                                                                                                                                                                                                    java.naming
                                                                                                                                                                                                                                                                                      javax.naming
                                                                                                                                                                                                                                                                                        Context
                                                                                                                                                                                                                                                                                          APPLET
                                                                                                                                                                                                                                                                                          java.net.http
                                                                                                                                                                                                                                                                                            java.net.http
                                                                                                                                                                                                                                                                                              HttpResponse.BodyHandlers
                                                                                                                                                                                                                                                                                                HttpResponse.BodySubscribers
                                                                                                                                                                                                                                                                                                  java.rmi
                                                                                                                                                                                                                                                                                                    java.rmi.server
                                                                                                                                                                                                                                                                                                      RMIClassLoader
                                                                                                                                                                                                                                                                                                        • - throws SecurityException
                                                                                                                                                                                                                                                                                                        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 25-ea+11-1205-open and 21.0.6+7-LTS-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.