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

New APIs in Java 26

Comparing Java 26 (26-ea+1-2-open) with Java 24 (24.0.1+9-30-open).

Element Modification
java.base
    java.io
      Console
        print(Object)
        println()
        println(Object)
        readln()
        readln(String)
        • + deprecated
        • + forRemoval
        IO
        • + final
        Reader
          • + deprecated
          • + forRemoval
          java.lang.classfile.attribute
            • + implements CodeElement
            java.lang.classfile.constantpool
              ClassEntry
                MethodTypeEntry
                  ModuleEntry
                    PackageEntry
                      StringEntry
                        Utf8Entry
                          java.lang.classfile
                            ClassFile
                              java.lang.constant
                                • + final
                                java.lang.invoke
                                  • + final
                                  • + final
                                  java.lang.module
                                    • + final
                                    java.lang.reflect
                                      • + final
                                      • + deprecated
                                      • + forRemoval
                                      AccessFlag.Location
                                        AccessFlag
                                          ClassFileFormatVersion
                                            java.lang.runtime
                                              • + final
                                              • + final
                                              java.lang
                                                Boolean
                                                  • - forRemoval
                                                  • - forRemoval
                                                  Byte
                                                    • - forRemoval
                                                    • - forRemoval
                                                    Character
                                                      • - forRemoval
                                                      Double
                                                        • - forRemoval
                                                        • - forRemoval
                                                        Float
                                                          • - forRemoval
                                                          • - forRemoval
                                                          • - forRemoval
                                                          Integer
                                                            • - forRemoval
                                                            • - forRemoval
                                                            Long
                                                              • - forRemoval
                                                              • - forRemoval
                                                              Math
                                                                • + final
                                                                • + deprecated
                                                                • + forRemoval
                                                                • + final
                                                                • - preview
                                                                • - preview
                                                                Short
                                                                  • - forRemoval
                                                                  • - forRemoval
                                                                  StrictMath
                                                                    CharSequence
                                                                      • - preview
                                                                      java.net
                                                                        HttpURLConnection
                                                                          • + deprecated
                                                                          • + forRemoval
                                                                          • + final
                                                                          • + deprecated
                                                                          • + forRemoval
                                                                          URLConnection
                                                                            • + deprecated
                                                                            • + forRemoval
                                                                            • + final
                                                                            • + final
                                                                            • + deprecated
                                                                            • + forRemoval
                                                                            java.nio.charset
                                                                              • + final
                                                                              • + final
                                                                              java.nio.file
                                                                                • + deprecated
                                                                                • + forRemoval
                                                                                java.nio
                                                                                  CharBuffer
                                                                                    java.security.cert
                                                                                      • + implements DEREncodable
                                                                                      • + implements DEREncodable
                                                                                      java.security.spec
                                                                                        • + implements DEREncodable
                                                                                        • + implements DEREncodable
                                                                                        java.security
                                                                                          • + final
                                                                                          • + implements DEREncodable
                                                                                          • + deprecated
                                                                                          • + forRemoval
                                                                                          • + deprecated
                                                                                          • + forRemoval
                                                                                          • + implements DEREncodable
                                                                                          • added preview
                                                                                          java.util.concurrent.locks
                                                                                            • + final
                                                                                            java.util.concurrent
                                                                                              • + final
                                                                                              • + implements ScheduledExecutorService
                                                                                              StructuredTaskScope.ShutdownOnFailure
                                                                                              StructuredTaskScope.ShutdownOnSuccess
                                                                                              StructuredTaskScope.Subtask
                                                                                                task()
                                                                                                • + abstract
                                                                                                • + sealed
                                                                                                StructuredTaskScope()
                                                                                                StructuredTaskScope(String, ThreadFactory)
                                                                                                • + abstract
                                                                                                ensureOwnerAndJoined()
                                                                                                • + abstract
                                                                                                handleComplete(StructuredTaskScope.Subtask)
                                                                                                isShutdown()
                                                                                                join()
                                                                                                joinUntil(Instant)
                                                                                                shutdown()
                                                                                                toString()
                                                                                                java.util.zip
                                                                                                  • + implements AutoCloseable
                                                                                                  • + implements AutoCloseable
                                                                                                  java.util
                                                                                                    • + final
                                                                                                    • + final
                                                                                                    Currency
                                                                                                      • + final
                                                                                                      • + deprecated
                                                                                                      • + forRemoval
                                                                                                      TimeZone
                                                                                                        javax.crypto.spec
                                                                                                          • - preview
                                                                                                          • - preview
                                                                                                          • - preview
                                                                                                          • - preview
                                                                                                          • - preview
                                                                                                          javax.crypto
                                                                                                            • + implements DEREncodable
                                                                                                            • - preview
                                                                                                            • - preview
                                                                                                            • - preview
                                                                                                            javax.net.ssl
                                                                                                              ExtendedSSLSession
                                                                                                                • + deprecated
                                                                                                                • + forRemoval
                                                                                                                javax.security.auth
                                                                                                                  • + deprecated
                                                                                                                  • + forRemoval
                                                                                                                  • + deprecated
                                                                                                                  • + forRemoval
                                                                                                                  java.compiler
                                                                                                                    javax.lang.model
                                                                                                                      SourceVersion
                                                                                                                        java.desktop
                                                                                                                          javax.swing.plaf.basic
                                                                                                                            BasicSliderUI
                                                                                                                              BasicSliderUI()
                                                                                                                              javax.swing.plaf.synth
                                                                                                                                SynthLookAndFeel
                                                                                                                                  load(URL)
                                                                                                                                  java.logging
                                                                                                                                    java.util.logging
                                                                                                                                      • + deprecated
                                                                                                                                      • + forRemoval
                                                                                                                                      java.management
                                                                                                                                        java.lang.management
                                                                                                                                          • + deprecated
                                                                                                                                          • + forRemoval
                                                                                                                                          javax.management.modelmbean
                                                                                                                                            DescriptorSupport
                                                                                                                                              • + deprecated
                                                                                                                                              • + forRemoval
                                                                                                                                              • + deprecated
                                                                                                                                              • + forRemoval
                                                                                                                                              • + deprecated
                                                                                                                                              • + forRemoval
                                                                                                                                              javax.management.remote
                                                                                                                                                • + deprecated
                                                                                                                                                • + forRemoval
                                                                                                                                                javax.management
                                                                                                                                                  • + deprecated
                                                                                                                                                  • + forRemoval
                                                                                                                                                  • + deprecated
                                                                                                                                                  • + forRemoval
                                                                                                                                                  • + deprecated
                                                                                                                                                  • + forRemoval
                                                                                                                                                  java.net.http
                                                                                                                                                    java.net.http
                                                                                                                                                      HttpResponse.BodyHandlers
                                                                                                                                                        HttpResponse.BodySubscribers
                                                                                                                                                          HttpResponse
                                                                                                                                                            java.security.jgss
                                                                                                                                                              javax.security.auth.kerberos
                                                                                                                                                                • + deprecated
                                                                                                                                                                • + forRemoval
                                                                                                                                                                • + deprecated
                                                                                                                                                                • + forRemoval
                                                                                                                                                                java.xml.crypto
                                                                                                                                                                  javax.xml.crypto.dsig
                                                                                                                                                                    SignatureMethod

                                                                                                                                                                      This report is based on simple comparison of all public and protected APIs of the Java SE packages of JDK builds 26-ea+1-2-open and 24.0.1+9-30-open. 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.