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

New APIs in Java 17

Comparing Java 17 (17+35-2724-open) with Java 16 (16.0.2+7-tem).

Element Modification
java.base
    java.io
      CharArrayReader
        • added
        Console
          • added
          FileInputStream
            • added
            • added
            InputStreamReader
              • added
              ObjectInputFilter.Config
                • added
                • added
                WriteAbortedException
                  • + deprecated
                  ObjectInputFilter
                    • added
                    • added
                    • added
                    • added
                    java.lang.constant
                      • + permitted subclass PrimitiveClassDescImpl
                      • + permitted subclass ReferenceClassDescImpl
                      • + permitted subclass ClassDesc
                      • + permitted subclass Double
                      • + permitted subclass DynamicConstantDesc
                      • + permitted subclass Float
                      • + permitted subclass Integer
                      • + permitted subclass Long
                      • + permitted subclass MethodHandleDesc
                      • + permitted subclass MethodTypeDesc
                      • + permitted subclass String
                      • + permitted subclass DirectMethodHandleDescImpl
                      • + permitted subclass AsTypeMethodHandleDesc
                      • + permitted subclass DirectMethodHandleDesc
                      • + permitted subclass MethodTypeDescImpl
                      java.lang.invoke
                        MethodHandles
                          • added
                          java.lang.reflect
                            AccessibleObject
                              • + deprecated
                              • + permitted subclass Constructor
                              • + permitted subclass Method
                              java.lang.runtime
                                • added preview
                                java.lang
                                  Process
                                    • added
                                    • added
                                    • added
                                    • added
                                    • added
                                    • added
                                    • + deprecated
                                    • + forRemoval
                                    • + forRemoval
                                    System
                                      • + deprecated
                                      • + forRemoval
                                      • + deprecated
                                      • + forRemoval
                                      ThreadGroup
                                        • + deprecated
                                        • + forRemoval
                                        Thread
                                          • + deprecated
                                          • + forRemoval
                                          java.net
                                            DatagramSocket
                                              • added
                                              • added
                                              • + deprecated
                                              ServerSocket
                                                • + deprecated
                                                Socket
                                                  • + deprecated
                                                  URLDecoder
                                                    URLDecoder()
                                                    • removed
                                                    java.nio
                                                      MappedByteBuffer
                                                        • added
                                                        • added
                                                        • added
                                                        • added
                                                        java.security
                                                          • + deprecated
                                                          • + forRemoval
                                                          • + deprecated
                                                          • + forRemoval
                                                          • + deprecated
                                                          • + forRemoval
                                                          • + deprecated
                                                          • + forRemoval
                                                          • + deprecated
                                                          • + forRemoval
                                                          • + deprecated
                                                          • + forRemoval
                                                          • + deprecated
                                                          • + forRemoval
                                                          java.time
                                                            • + implements InstantSource
                                                            • added
                                                            java.util.concurrent
                                                              Executors
                                                                • + deprecated
                                                                • + forRemoval
                                                                • + deprecated
                                                                • + forRemoval
                                                                • + deprecated
                                                                • + forRemoval
                                                                ForkJoinPool
                                                                  • added
                                                                  • added
                                                                  • added
                                                                  ThreadLocalRandom
                                                                    • added
                                                                    • added
                                                                    nextGaussian()
                                                                    • removed
                                                                    • added
                                                                    java.util
                                                                      • added
                                                                      • + implements RandomGenerator
                                                                      • + implements RandomGenerator
                                                                      • + implements RandomGenerator.SplittableGenerator
                                                                      nextBoolean()
                                                                      • removed
                                                                      nextDouble()
                                                                      • removed
                                                                      nextDouble(double)
                                                                      • removed
                                                                      nextDouble(double, double)
                                                                      • removed
                                                                      nextInt(int)
                                                                      • removed
                                                                      nextInt(int, int)
                                                                      • removed
                                                                      nextLong(long)
                                                                      • removed
                                                                      nextLong(long, long)
                                                                      • removed
                                                                      • added
                                                                      • added
                                                                      • added
                                                                      • added
                                                                      • added
                                                                      Map.Entry
                                                                        • added
                                                                        javax.security.auth
                                                                          • + deprecated
                                                                          • + forRemoval
                                                                          Subject
                                                                            • + deprecated
                                                                            • + forRemoval
                                                                            • + deprecated
                                                                            • + forRemoval
                                                                            • + deprecated
                                                                            • + forRemoval
                                                                            java.compiler
                                                                              javax.lang.model.util
                                                                                Elements
                                                                                  • added
                                                                                  javax.lang.model
                                                                                    SourceVersion
                                                                                      • added
                                                                                      java.datatransfer
                                                                                        java.awt.datatransfer
                                                                                          DataFlavor
                                                                                            • + final
                                                                                            • + final
                                                                                            • + final
                                                                                            java.desktop
                                                                                              java.applet
                                                                                                • + forRemoval
                                                                                                • + forRemoval
                                                                                                • + forRemoval
                                                                                                • + forRemoval
                                                                                                java.beans
                                                                                                  Beans
                                                                                                    • + forRemoval
                                                                                                    • + forRemoval
                                                                                                    javax.swing.filechooser
                                                                                                      FileSystemView
                                                                                                        • added
                                                                                                        javax.swing.plaf.basic
                                                                                                          BasicDirectoryModel
                                                                                                            • + deprecated
                                                                                                            • + deprecated
                                                                                                            • + deprecated
                                                                                                            • + deprecated
                                                                                                            • + deprecated
                                                                                                            • + deprecated
                                                                                                            • + deprecated
                                                                                                            • + deprecated
                                                                                                            BasicToolBarUI
                                                                                                              • + deprecated
                                                                                                              javax.swing
                                                                                                                • + forRemoval
                                                                                                                • + implements AccessibleAction
                                                                                                                • added
                                                                                                                • added
                                                                                                                • added
                                                                                                                • added
                                                                                                                RepaintManager
                                                                                                                  • + forRemoval
                                                                                                                  java.logging
                                                                                                                    java.util.logging
                                                                                                                      LogManager
                                                                                                                        • + deprecated
                                                                                                                        • + forRemoval
                                                                                                                        java.naming
                                                                                                                          javax.naming
                                                                                                                            Context
                                                                                                                              • + forRemoval
                                                                                                                              java.rmi
                                                                                                                                java.rmi.activation
                                                                                                                                • removed
                                                                                                                                java.rmi
                                                                                                                                  • + forRemoval
                                                                                                                                  java.xml.crypto
                                                                                                                                    javax.xml.crypto.dsig.spec
                                                                                                                                      • added
                                                                                                                                      javax.xml.crypto.dsig
                                                                                                                                        SignatureMethod
                                                                                                                                          • added

                                                                                                                                          This report is based on simple comparison of all public and protected APIs of the java.* and javax.* packages of JDK builds 17+35-2724-open and 16.0.2+7-tem. It does not make statements about compatibility.

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