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

New APIs in Java 21

Comparing Java 21 (21.0.5+11-LTS-tem) with Java 16 (16.0.2+7-tem).

Element Modification
java.base
    java.io
      BufferedInputStream
        CharArrayReader
          • added
          • - final
          • + sealed
          FileInputStream
            • added
            • added
            InputStreamReader
              • added
              InvalidClassException
                InvalidObjectException
                  ObjectInputFilter.Config
                    ObjectInputStream.GetField
                      • + throws ClassNotFoundException
                      • + final
                      ObjectStreamException
                        PrintStream
                          PushbackInputStream
                            SequenceInputStream
                              WriteAbortedException
                                • + deprecated
                                ObjectInputFilter
                                  java.lang.constant
                                    ConstantDescs
                                      • + sealed
                                      • + sealed
                                      • + sealed
                                      • + sealed
                                      • + sealed
                                      • + abstract
                                      java.lang.invoke
                                        • + sealed
                                        ClassSpecializer.Factory
                                        ClassSpecializer.SpeciesData
                                        • + sealed
                                        • + final
                                        MethodHandles
                                          StringConcatFactory
                                            • + sealed
                                            • - final
                                            java.lang.module
                                              ModuleDescriptor.Exports
                                                ModuleDescriptor.Opens
                                                  ModuleDescriptor.Requires
                                                    ModuleDescriptor
                                                      java.lang.ref
                                                        ReferenceQueue
                                                          • - throws IllegalArgumentException
                                                          • + sealed
                                                          java.lang.reflect
                                                            AccessibleObject
                                                              • + deprecated
                                                              • + sealed
                                                              • + abstract
                                                              Field
                                                                Method
                                                                  • - throws IllegalArgumentException
                                                                  Parameter
                                                                    Member
                                                                      java.lang.runtime
                                                                        java.lang
                                                                          Character.UnicodeBlock
                                                                            Character
                                                                              Class
                                                                                • - preview
                                                                                • - preview
                                                                                Compiler
                                                                                Double
                                                                                  Enum
                                                                                    • + deprecated
                                                                                    • + forRemoval
                                                                                    FdLibm.Cbrt
                                                                                    FdLibm.Hypot
                                                                                    FdLibm.Pow
                                                                                    Float
                                                                                      Integer
                                                                                        Long
                                                                                          Math
                                                                                            ModuleLayer.Controller
                                                                                              Module
                                                                                                Object
                                                                                                  • + forRemoval
                                                                                                  Process
                                                                                                    Runtime
                                                                                                      • + deprecated
                                                                                                      • + deprecated
                                                                                                      • + deprecated
                                                                                                      • + deprecated
                                                                                                      • + forRemoval
                                                                                                      • + deprecated
                                                                                                      • + forRemoval
                                                                                                      • + forRemoval
                                                                                                      StrictMath
                                                                                                        • + implements Appendable
                                                                                                        • + implements Appendable
                                                                                                        String
                                                                                                          System
                                                                                                            • + deprecated
                                                                                                            • + forRemoval
                                                                                                            • + deprecated
                                                                                                            • + forRemoval
                                                                                                            • + deprecated
                                                                                                            • + forRemoval
                                                                                                            • + deprecated
                                                                                                            • + forRemoval
                                                                                                            ThreadGroup
                                                                                                              allowThreadSuspension(boolean)
                                                                                                              • + deprecated
                                                                                                              • + forRemoval
                                                                                                              Thread
                                                                                                                • + deprecated
                                                                                                                • + forRemoval
                                                                                                                • + deprecated
                                                                                                                • + forRemoval
                                                                                                                Character.UnicodeScript
                                                                                                                  java.math
                                                                                                                    BigDecimal
                                                                                                                      BigInteger
                                                                                                                        java.net.spi
                                                                                                                          java.net
                                                                                                                            DatagramSocket
                                                                                                                              • + deprecated
                                                                                                                              • + sealed
                                                                                                                              ServerSocket
                                                                                                                                • + deprecated
                                                                                                                                SocketException
                                                                                                                                  Socket
                                                                                                                                    • + deprecated
                                                                                                                                    URLDecoder
                                                                                                                                      URLDecoder()
                                                                                                                                      URL
                                                                                                                                        • + deprecated
                                                                                                                                        • + deprecated
                                                                                                                                        • + deprecated
                                                                                                                                        • + deprecated
                                                                                                                                        • + deprecated
                                                                                                                                        • + deprecated
                                                                                                                                        java.nio.channels
                                                                                                                                          FileChannel
                                                                                                                                            java.nio.charset
                                                                                                                                              Charset
                                                                                                                                                java.nio.file.spi
                                                                                                                                                  FileSystemProvider
                                                                                                                                                    java.nio
                                                                                                                                                      • + sealed
                                                                                                                                                      • + sealed
                                                                                                                                                      • + sealed
                                                                                                                                                      • + sealed
                                                                                                                                                      • + sealed
                                                                                                                                                      • + sealed
                                                                                                                                                      • + sealed
                                                                                                                                                      • + sealed
                                                                                                                                                      • + sealed
                                                                                                                                                      java.security.interfaces
                                                                                                                                                        DSAKeyPairGenerator
                                                                                                                                                          • - throws InvalidParameterException
                                                                                                                                                          • - throws InvalidParameterException
                                                                                                                                                          java.security.spec
                                                                                                                                                            PSSParameterSpec
                                                                                                                                                              • + deprecated
                                                                                                                                                              • + deprecated
                                                                                                                                                              java.security
                                                                                                                                                                • + deprecated
                                                                                                                                                                • + forRemoval
                                                                                                                                                                • + deprecated
                                                                                                                                                                • + forRemoval
                                                                                                                                                                • + deprecated
                                                                                                                                                                • + forRemoval
                                                                                                                                                                InvalidParameterException
                                                                                                                                                                  KeyStoreSpi
                                                                                                                                                                    KeyStore
                                                                                                                                                                      • + deprecated
                                                                                                                                                                      • + forRemoval
                                                                                                                                                                      • + deprecated
                                                                                                                                                                      • + forRemoval
                                                                                                                                                                      • + deprecated
                                                                                                                                                                      • + forRemoval
                                                                                                                                                                      • + deprecated
                                                                                                                                                                      • + forRemoval
                                                                                                                                                                      java.text
                                                                                                                                                                        DecimalFormatSymbols
                                                                                                                                                                          java.time.chrono
                                                                                                                                                                            IsoChronology
                                                                                                                                                                              JapaneseChronology
                                                                                                                                                                                MinguoChronology
                                                                                                                                                                                  ThaiBuddhistChronology
                                                                                                                                                                                    Chronology
                                                                                                                                                                                      java.time.format
                                                                                                                                                                                        DateTimeFormatterBuilder
                                                                                                                                                                                          DateTimeFormatter
                                                                                                                                                                                            java.time
                                                                                                                                                                                              • + implements InstantSource
                                                                                                                                                                                              Duration
                                                                                                                                                                                                • + sealed
                                                                                                                                                                                                ZoneOffset
                                                                                                                                                                                                  java.util.concurrent
                                                                                                                                                                                                    CompletableFuture
                                                                                                                                                                                                      • + final
                                                                                                                                                                                                      ConcurrentSkipListMap
                                                                                                                                                                                                        ConcurrentSkipListSet
                                                                                                                                                                                                          CopyOnWriteArrayList
                                                                                                                                                                                                            DelayQueue
                                                                                                                                                                                                              Executors
                                                                                                                                                                                                                • + deprecated
                                                                                                                                                                                                                • + forRemoval
                                                                                                                                                                                                                • + deprecated
                                                                                                                                                                                                                • + forRemoval
                                                                                                                                                                                                                • + deprecated
                                                                                                                                                                                                                • + forRemoval
                                                                                                                                                                                                                ForkJoinPool
                                                                                                                                                                                                                  • added
                                                                                                                                                                                                                  • added
                                                                                                                                                                                                                  • added
                                                                                                                                                                                                                  ForkJoinTask
                                                                                                                                                                                                                    ForkJoinWorkerThread
                                                                                                                                                                                                                      FutureTask
                                                                                                                                                                                                                        • + final
                                                                                                                                                                                                                        nextGaussian()
                                                                                                                                                                                                                        ThreadPoolExecutor
                                                                                                                                                                                                                          • + forRemoval
                                                                                                                                                                                                                          • + implements AutoCloseable
                                                                                                                                                                                                                          Future
                                                                                                                                                                                                                            java.util.regex
                                                                                                                                                                                                                              Matcher
                                                                                                                                                                                                                                Pattern
                                                                                                                                                                                                                                  MatchResult
                                                                                                                                                                                                                                    java.util.spi
                                                                                                                                                                                                                                      ToolProvider
                                                                                                                                                                                                                                        java.util.zip
                                                                                                                                                                                                                                          ZipInputStream
                                                                                                                                                                                                                                            java.util
                                                                                                                                                                                                                                              ArrayList
                                                                                                                                                                                                                                                • + final
                                                                                                                                                                                                                                                Collections
                                                                                                                                                                                                                                                  • + sealed
                                                                                                                                                                                                                                                  HashMap
                                                                                                                                                                                                                                                    HashSet
                                                                                                                                                                                                                                                      IdentityHashMap
                                                                                                                                                                                                                                                        • + sealed
                                                                                                                                                                                                                                                        • - implements Map
                                                                                                                                                                                                                                                        • + implements SequencedMap
                                                                                                                                                                                                                                                        • - implements Set
                                                                                                                                                                                                                                                        • + implements SequencedSet
                                                                                                                                                                                                                                                        LinkedList
                                                                                                                                                                                                                                                          Locale
                                                                                                                                                                                                                                                            • + deprecated
                                                                                                                                                                                                                                                            • + deprecated
                                                                                                                                                                                                                                                            • + deprecated
                                                                                                                                                                                                                                                            Objects
                                                                                                                                                                                                                                                              • + implements RandomGenerator
                                                                                                                                                                                                                                                              • + implements RandomGenerator
                                                                                                                                                                                                                                                              • + implements RandomGenerator.SplittableGenerator
                                                                                                                                                                                                                                                              nextBoolean()
                                                                                                                                                                                                                                                              nextDouble()
                                                                                                                                                                                                                                                              nextDouble(double)
                                                                                                                                                                                                                                                              nextDouble(double, double)
                                                                                                                                                                                                                                                              nextInt(int)
                                                                                                                                                                                                                                                              nextInt(int, int)
                                                                                                                                                                                                                                                              nextLong(long)
                                                                                                                                                                                                                                                              nextLong(long, long)
                                                                                                                                                                                                                                                              TreeMap
                                                                                                                                                                                                                                                                TreeSet
                                                                                                                                                                                                                                                                  WeakHashMap
                                                                                                                                                                                                                                                                    • + implements SequencedCollection
                                                                                                                                                                                                                                                                    • - implements Collection
                                                                                                                                                                                                                                                                    • + implements SequencedCollection
                                                                                                                                                                                                                                                                    Map.Entry
                                                                                                                                                                                                                                                                      NavigableMap
                                                                                                                                                                                                                                                                        NavigableSet
                                                                                                                                                                                                                                                                          • - implements Map
                                                                                                                                                                                                                                                                          • + implements SequencedMap
                                                                                                                                                                                                                                                                          • + implements SequencedSet
                                                                                                                                                                                                                                                                          javax.crypto.spec
                                                                                                                                                                                                                                                                            OAEPParameterSpec
                                                                                                                                                                                                                                                                              • + deprecated
                                                                                                                                                                                                                                                                              javax.crypto
                                                                                                                                                                                                                                                                                javax.net.ssl
                                                                                                                                                                                                                                                                                  SSLHandshakeException
                                                                                                                                                                                                                                                                                    SSLKeyException
                                                                                                                                                                                                                                                                                      SSLParameters
                                                                                                                                                                                                                                                                                        SSLPeerUnverifiedException
                                                                                                                                                                                                                                                                                          SSLProtocolException
                                                                                                                                                                                                                                                                                            SSLSessionContext
                                                                                                                                                                                                                                                                                              • - throws IllegalArgumentException
                                                                                                                                                                                                                                                                                              • - throws IllegalArgumentException
                                                                                                                                                                                                                                                                                              javax.security.auth
                                                                                                                                                                                                                                                                                                • + deprecated
                                                                                                                                                                                                                                                                                                • + forRemoval
                                                                                                                                                                                                                                                                                                Subject
                                                                                                                                                                                                                                                                                                  • + deprecated
                                                                                                                                                                                                                                                                                                  • + forRemoval
                                                                                                                                                                                                                                                                                                  • + deprecated
                                                                                                                                                                                                                                                                                                  • + forRemoval
                                                                                                                                                                                                                                                                                                  • + deprecated
                                                                                                                                                                                                                                                                                                  • + forRemoval
                                                                                                                                                                                                                                                                                                  • + deprecated
                                                                                                                                                                                                                                                                                                  • + forRemoval
                                                                                                                                                                                                                                                                                                  • + deprecated
                                                                                                                                                                                                                                                                                                  • + forRemoval
                                                                                                                                                                                                                                                                                                  java.compiler
                                                                                                                                                                                                                                                                                                    javax.annotation.processing
                                                                                                                                                                                                                                                                                                      Messager
                                                                                                                                                                                                                                                                                                        javax.lang.model.element
                                                                                                                                                                                                                                                                                                          ElementKind
                                                                                                                                                                                                                                                                                                            Modifier
                                                                                                                                                                                                                                                                                                              • - preview
                                                                                                                                                                                                                                                                                                              • - preview
                                                                                                                                                                                                                                                                                                              ExecutableElement
                                                                                                                                                                                                                                                                                                                TypeElement
                                                                                                                                                                                                                                                                                                                  • - preview
                                                                                                                                                                                                                                                                                                                  VariableElement
                                                                                                                                                                                                                                                                                                                    javax.lang.model.util
                                                                                                                                                                                                                                                                                                                      Elements
                                                                                                                                                                                                                                                                                                                        javax.lang.model
                                                                                                                                                                                                                                                                                                                          SourceVersion
                                                                                                                                                                                                                                                                                                                            javax.tools
                                                                                                                                                                                                                                                                                                                              ForwardingJavaFileManager
                                                                                                                                                                                                                                                                                                                                DocumentationTool.Location
                                                                                                                                                                                                                                                                                                                                  JavaFileManager
                                                                                                                                                                                                                                                                                                                                    java.datatransfer
                                                                                                                                                                                                                                                                                                                                      java.awt.datatransfer
                                                                                                                                                                                                                                                                                                                                        DataFlavor
                                                                                                                                                                                                                                                                                                                                          • + final
                                                                                                                                                                                                                                                                                                                                          • + final
                                                                                                                                                                                                                                                                                                                                          • + final
                                                                                                                                                                                                                                                                                                                                          java.desktop
                                                                                                                                                                                                                                                                                                                                            java.applet
                                                                                                                                                                                                                                                                                                                                              • + forRemoval
                                                                                                                                                                                                                                                                                                                                              • + forRemoval
                                                                                                                                                                                                                                                                                                                                              • + forRemoval
                                                                                                                                                                                                                                                                                                                                              • + forRemoval
                                                                                                                                                                                                                                                                                                                                              java.awt.color
                                                                                                                                                                                                                                                                                                                                                • + final
                                                                                                                                                                                                                                                                                                                                                • + final
                                                                                                                                                                                                                                                                                                                                                • + sealed
                                                                                                                                                                                                                                                                                                                                                finalize()
                                                                                                                                                                                                                                                                                                                                                java.awt.desktop
                                                                                                                                                                                                                                                                                                                                                  • + sealed
                                                                                                                                                                                                                                                                                                                                                  • + sealed
                                                                                                                                                                                                                                                                                                                                                  java.awt.dnd
                                                                                                                                                                                                                                                                                                                                                    • + final
                                                                                                                                                                                                                                                                                                                                                    java.awt.event
                                                                                                                                                                                                                                                                                                                                                      • + sealed
                                                                                                                                                                                                                                                                                                                                                      java.awt.geom
                                                                                                                                                                                                                                                                                                                                                        CubicCurve2D.Double
                                                                                                                                                                                                                                                                                                                                                          getBounds2D()
                                                                                                                                                                                                                                                                                                                                                          CubicCurve2D.Float
                                                                                                                                                                                                                                                                                                                                                            getBounds2D()
                                                                                                                                                                                                                                                                                                                                                            CubicCurve2D
                                                                                                                                                                                                                                                                                                                                                              • + sealed
                                                                                                                                                                                                                                                                                                                                                              QuadCurve2D.Double
                                                                                                                                                                                                                                                                                                                                                                getBounds2D()
                                                                                                                                                                                                                                                                                                                                                                QuadCurve2D.Float
                                                                                                                                                                                                                                                                                                                                                                  getBounds2D()
                                                                                                                                                                                                                                                                                                                                                                  QuadCurve2D
                                                                                                                                                                                                                                                                                                                                                                    java.awt.image
                                                                                                                                                                                                                                                                                                                                                                      ColorModel
                                                                                                                                                                                                                                                                                                                                                                        finalize()
                                                                                                                                                                                                                                                                                                                                                                        IndexColorModel
                                                                                                                                                                                                                                                                                                                                                                          finalize()
                                                                                                                                                                                                                                                                                                                                                                          java.awt
                                                                                                                                                                                                                                                                                                                                                                            Graphics
                                                                                                                                                                                                                                                                                                                                                                              • + forRemoval
                                                                                                                                                                                                                                                                                                                                                                              • + final
                                                                                                                                                                                                                                                                                                                                                                              • + sealed
                                                                                                                                                                                                                                                                                                                                                                              • + final
                                                                                                                                                                                                                                                                                                                                                                              PrintJob
                                                                                                                                                                                                                                                                                                                                                                                • + forRemoval
                                                                                                                                                                                                                                                                                                                                                                                • + final
                                                                                                                                                                                                                                                                                                                                                                                • + sealed
                                                                                                                                                                                                                                                                                                                                                                                java.beans
                                                                                                                                                                                                                                                                                                                                                                                  Beans
                                                                                                                                                                                                                                                                                                                                                                                    • + forRemoval
                                                                                                                                                                                                                                                                                                                                                                                    • + forRemoval
                                                                                                                                                                                                                                                                                                                                                                                    javax.imageio.spi
                                                                                                                                                                                                                                                                                                                                                                                      ServiceRegistry
                                                                                                                                                                                                                                                                                                                                                                                        • + forRemoval
                                                                                                                                                                                                                                                                                                                                                                                        javax.imageio.stream
                                                                                                                                                                                                                                                                                                                                                                                          FileCacheImageInputStream
                                                                                                                                                                                                                                                                                                                                                                                            • + forRemoval
                                                                                                                                                                                                                                                                                                                                                                                            FileImageInputStream
                                                                                                                                                                                                                                                                                                                                                                                              • + forRemoval
                                                                                                                                                                                                                                                                                                                                                                                              FileImageOutputStream
                                                                                                                                                                                                                                                                                                                                                                                                • + forRemoval
                                                                                                                                                                                                                                                                                                                                                                                                ImageInputStreamImpl
                                                                                                                                                                                                                                                                                                                                                                                                  • + forRemoval
                                                                                                                                                                                                                                                                                                                                                                                                  MemoryCacheImageInputStream
                                                                                                                                                                                                                                                                                                                                                                                                    • + forRemoval
                                                                                                                                                                                                                                                                                                                                                                                                    javax.sound.midi
                                                                                                                                                                                                                                                                                                                                                                                                      • + final
                                                                                                                                                                                                                                                                                                                                                                                                      javax.swing.filechooser
                                                                                                                                                                                                                                                                                                                                                                                                        FileSystemView
                                                                                                                                                                                                                                                                                                                                                                                                          javax.swing.plaf.basic
                                                                                                                                                                                                                                                                                                                                                                                                            BasicDirectoryModel
                                                                                                                                                                                                                                                                                                                                                                                                              • + deprecated
                                                                                                                                                                                                                                                                                                                                                                                                              • + forRemoval
                                                                                                                                                                                                                                                                                                                                                                                                              • + deprecated
                                                                                                                                                                                                                                                                                                                                                                                                              • + forRemoval
                                                                                                                                                                                                                                                                                                                                                                                                              • + deprecated
                                                                                                                                                                                                                                                                                                                                                                                                              • + forRemoval
                                                                                                                                                                                                                                                                                                                                                                                                              • + deprecated
                                                                                                                                                                                                                                                                                                                                                                                                              • + forRemoval
                                                                                                                                                                                                                                                                                                                                                                                                              • + deprecated
                                                                                                                                                                                                                                                                                                                                                                                                              • + forRemoval
                                                                                                                                                                                                                                                                                                                                                                                                              • + deprecated
                                                                                                                                                                                                                                                                                                                                                                                                              • + forRemoval
                                                                                                                                                                                                                                                                                                                                                                                                              • + deprecated
                                                                                                                                                                                                                                                                                                                                                                                                              • + forRemoval
                                                                                                                                                                                                                                                                                                                                                                                                              • + deprecated
                                                                                                                                                                                                                                                                                                                                                                                                              • + forRemoval
                                                                                                                                                                                                                                                                                                                                                                                                              • + sealed
                                                                                                                                                                                                                                                                                                                                                                                                              BasicToolBarUI
                                                                                                                                                                                                                                                                                                                                                                                                                • + deprecated
                                                                                                                                                                                                                                                                                                                                                                                                                • + forRemoval
                                                                                                                                                                                                                                                                                                                                                                                                                javax.swing.plaf.synth
                                                                                                                                                                                                                                                                                                                                                                                                                  SynthComboBoxUI
                                                                                                                                                                                                                                                                                                                                                                                                                    SynthLookAndFeel
                                                                                                                                                                                                                                                                                                                                                                                                                      • + deprecated
                                                                                                                                                                                                                                                                                                                                                                                                                      • + forRemoval
                                                                                                                                                                                                                                                                                                                                                                                                                      SynthPasswordFieldUI
                                                                                                                                                                                                                                                                                                                                                                                                                        javax.swing.text.html
                                                                                                                                                                                                                                                                                                                                                                                                                          AccessibleHTML.HTMLAccessibleContext
                                                                                                                                                                                                                                                                                                                                                                                                                            • + final
                                                                                                                                                                                                                                                                                                                                                                                                                            • + final
                                                                                                                                                                                                                                                                                                                                                                                                                            • + final
                                                                                                                                                                                                                                                                                                                                                                                                                            javax.swing.text
                                                                                                                                                                                                                                                                                                                                                                                                                              DefaultEditorKit
                                                                                                                                                                                                                                                                                                                                                                                                                                • + final
                                                                                                                                                                                                                                                                                                                                                                                                                                • + final
                                                                                                                                                                                                                                                                                                                                                                                                                                • + final
                                                                                                                                                                                                                                                                                                                                                                                                                                • + final
                                                                                                                                                                                                                                                                                                                                                                                                                                • + sealed
                                                                                                                                                                                                                                                                                                                                                                                                                                javax.swing
                                                                                                                                                                                                                                                                                                                                                                                                                                  • + sealed
                                                                                                                                                                                                                                                                                                                                                                                                                                  • + sealed
                                                                                                                                                                                                                                                                                                                                                                                                                                  • + final
                                                                                                                                                                                                                                                                                                                                                                                                                                  • + forRemoval
                                                                                                                                                                                                                                                                                                                                                                                                                                  • + implements AccessibleAction
                                                                                                                                                                                                                                                                                                                                                                                                                                  RepaintManager
                                                                                                                                                                                                                                                                                                                                                                                                                                    • + forRemoval
                                                                                                                                                                                                                                                                                                                                                                                                                                    • + final
                                                                                                                                                                                                                                                                                                                                                                                                                                    java.logging
                                                                                                                                                                                                                                                                                                                                                                                                                                      java.util.logging
                                                                                                                                                                                                                                                                                                                                                                                                                                        LogManager
                                                                                                                                                                                                                                                                                                                                                                                                                                          • + deprecated
                                                                                                                                                                                                                                                                                                                                                                                                                                          • + forRemoval
                                                                                                                                                                                                                                                                                                                                                                                                                                          java.management.rmi
                                                                                                                                                                                                                                                                                                                                                                                                                                            javax.management.remote.rmi
                                                                                                                                                                                                                                                                                                                                                                                                                                              RMIIIOPServerImpl
                                                                                                                                                                                                                                                                                                                                                                                                                                              java.management
                                                                                                                                                                                                                                                                                                                                                                                                                                                java.lang.management
                                                                                                                                                                                                                                                                                                                                                                                                                                                  MemoryMXBean
                                                                                                                                                                                                                                                                                                                                                                                                                                                    • + deprecated
                                                                                                                                                                                                                                                                                                                                                                                                                                                    javax.management.loading
                                                                                                                                                                                                                                                                                                                                                                                                                                                      • + deprecated
                                                                                                                                                                                                                                                                                                                                                                                                                                                      • + forRemoval
                                                                                                                                                                                                                                                                                                                                                                                                                                                      • + deprecated
                                                                                                                                                                                                                                                                                                                                                                                                                                                      • + forRemoval
                                                                                                                                                                                                                                                                                                                                                                                                                                                      • + deprecated
                                                                                                                                                                                                                                                                                                                                                                                                                                                      • + forRemoval
                                                                                                                                                                                                                                                                                                                                                                                                                                                      • + deprecated
                                                                                                                                                                                                                                                                                                                                                                                                                                                      • + forRemoval
                                                                                                                                                                                                                                                                                                                                                                                                                                                      javax.management.remote
                                                                                                                                                                                                                                                                                                                                                                                                                                                        JMXConnector
                                                                                                                                                                                                                                                                                                                                                                                                                                                          • + deprecated
                                                                                                                                                                                                                                                                                                                                                                                                                                                          • + forRemoval
                                                                                                                                                                                                                                                                                                                                                                                                                                                          java.naming
                                                                                                                                                                                                                                                                                                                                                                                                                                                            javax.naming
                                                                                                                                                                                                                                                                                                                                                                                                                                                              Context
                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + forRemoval
                                                                                                                                                                                                                                                                                                                                                                                                                                                                java.net.http
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  java.net.http
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • + implements AutoCloseable
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    HttpClient.Builder
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      HttpRequest.Builder
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        java.rmi
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          java.rmi.activation
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          java.rmi
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • + forRemoval
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            java.xml.crypto
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              javax.xml.crypto.dsig.spec
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                javax.xml.crypto.dsig
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  SignatureMethod
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    java.xml
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      javax.xml.xpath
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        XPathFactory

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

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          For the latest Java versions the corresponding CSRs (Compatibility & Specification Review) are linked for a quick reference to find out about the reasoning of the change.