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

New APIs in Java 20

Comparing Java 20 (20-ea+24-1795-open) with Java 19 (19.0.1+10-tem).

Element Modification
java.base
    java.io
      BufferedInputStream
        • added
        PushbackInputStream
          • added
          java.lang.constant
            ClassDesc
              java.lang.module
                ModuleDescriptor.Exports
                  ModuleDescriptor.Opens
                    ModuleDescriptor.Requires
                      ModuleDescriptor
                        java.lang.reflect
                          Executable
                            • + abstract
                            Field
                              Parameter
                                Member
                                  java.lang
                                    Character.UnicodeBlock
                                      • added
                                      • added
                                      • added
                                      • added
                                      • added
                                      • added
                                      • added
                                      Class
                                        Float
                                          • + deprecated
                                          • + forRemoval
                                          Character.UnicodeScript
                                            • added
                                            • added
                                            java.net
                                              URL
                                                • + deprecated
                                                • + deprecated
                                                • + deprecated
                                                • + deprecated
                                                • + deprecated
                                                • + deprecated
                                                • added
                                                java.nio.file.spi
                                                  FileSystemProvider
                                                    java.nio.file
                                                      Path
                                                        • added
                                                        java.security.cert
                                                          CertStore
                                                            • - final
                                                            java.security.interfaces
                                                              DSAKeyPairGenerator
                                                                • - throws InvalidParameterException
                                                                • - throws InvalidParameterException
                                                                java.security
                                                                  InvalidParameterException
                                                                    • added
                                                                    • added
                                                                    java.util.regex
                                                                      Matcher
                                                                        • added
                                                                        • added
                                                                        Pattern
                                                                          • added
                                                                          MatchResult
                                                                            • added
                                                                            • added
                                                                            • added
                                                                            • added
                                                                            • added
                                                                            java.util.zip
                                                                              ZipInputStream
                                                                                • added
                                                                                • added
                                                                                • added
                                                                                • added
                                                                                • added
                                                                                • added
                                                                                java.util
                                                                                  IdentityHashMap
                                                                                    • added
                                                                                    • added
                                                                                    java.compiler
                                                                                      javax.lang.model.util
                                                                                        Elements
                                                                                          javax.lang.model
                                                                                            SourceVersion
                                                                                              java.desktop
                                                                                                javax.swing.plaf.synth
                                                                                                  SynthPasswordFieldUI
                                                                                                    • added
                                                                                                    javax.swing.text
                                                                                                      DefaultEditorKit

                                                                                                        This report is based on simple comparison of all public and protected APIs of the java.* and javax.* packages of JDK builds 20-ea+24-1795-open and 19.0.1+10-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.