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

New APIs in Java 11

Comparing Java 11 (11.0.13+8-tem) with Java 9 (9.0.4-open).

Element Modification
java.activation
java.base
    java.io
      ByteArrayInputStream
        ByteArrayOutputStream
          FileInputStream
            • + forRemoval
            FileOutputStream
              • + forRemoval
              FileReader
                FileWriter
                  InputStream
                    OutputStream
                      PrintStream
                        PrintWriter
                          Reader
                            Writer
                              java.lang.invoke
                                • added
                                • added
                                MethodType
                                  java.lang.ref
                                    Reference
                                      java.lang.reflect
                                        MalformedParameterizedTypeException
                                          java.lang
                                            Character.UnicodeBlock
                                              Character
                                                Class
                                                  FdLibm.Cbrt
                                                    Cbrt()
                                                    • removed
                                                    FdLibm.Hypot
                                                      Hypot()
                                                      • removed
                                                      FdLibm.Pow
                                                        Pow()
                                                        • removed
                                                        Runtime.Version
                                                          • + deprecated
                                                          • + deprecated
                                                          • + deprecated
                                                          Runtime
                                                            getLocalizedInputStream(InputStream)
                                                            getLocalizedOutputStream(OutputStream)
                                                            runFinalizersOnExit(boolean)
                                                            SecurityManager
                                                              inCheck
                                                              checkAwtEventQueueAccess()
                                                              checkMemberAccess(Class, int)
                                                              checkSystemClipboardAccess()
                                                              checkTopLevelWindow(Object)
                                                              classDepth(String)
                                                              classLoaderDepth()
                                                              currentClassLoader()
                                                              currentLoadedClass()
                                                              getInCheck()
                                                              inClass(String)
                                                              inClassLoader()
                                                              • + implements Comparable
                                                              • + implements Comparable
                                                              String
                                                                System
                                                                  runFinalizersOnExit(boolean)
                                                                  Thread
                                                                    destroy()
                                                                    stop(Throwable)
                                                                    Character.UnicodeScript
                                                                      CharSequence
                                                                        StackWalker.StackFrame
                                                                          java.net
                                                                            URLDecoder
                                                                              URLEncoder
                                                                                java.nio.channels
                                                                                  Channels
                                                                                    SelectionKey
                                                                                      Selector
                                                                                        java.nio.file
                                                                                          FileStore
                                                                                            Files
                                                                                              Path
                                                                                                java.nio
                                                                                                  ByteBuffer
                                                                                                    CharBuffer
                                                                                                      DoubleBuffer
                                                                                                        FloatBuffer
                                                                                                          IntBuffer
                                                                                                            LongBuffer
                                                                                                              ShortBuffer
                                                                                                                java.security.acl
                                                                                                                  • + forRemoval
                                                                                                                  • + forRemoval
                                                                                                                  • + forRemoval
                                                                                                                  • + forRemoval
                                                                                                                  • + forRemoval
                                                                                                                  • + forRemoval
                                                                                                                  • + forRemoval
                                                                                                                  • + forRemoval
                                                                                                                  java.security.interfaces
                                                                                                                    RSAKey
                                                                                                                      java.security.spec
                                                                                                                        • - extends Object
                                                                                                                        • - implements AlgorithmParameterSpec
                                                                                                                        • + extends NamedParameterSpec
                                                                                                                        getName()
                                                                                                                        MGF1ParameterSpec
                                                                                                                          PSSParameterSpec
                                                                                                                            RSAKeyGenParameterSpec
                                                                                                                              RSAMultiPrimePrivateCrtKeySpec
                                                                                                                                RSAPrivateCrtKeySpec
                                                                                                                                  RSAPrivateKeySpec
                                                                                                                                    RSAPublicKeySpec
                                                                                                                                      java.security
                                                                                                                                        • + forRemoval
                                                                                                                                        • + forRemoval
                                                                                                                                        • + forRemoval
                                                                                                                                        • + forRemoval
                                                                                                                                        java.time.chrono
                                                                                                                                          HijrahEra
                                                                                                                                            MinguoEra
                                                                                                                                              ThaiBuddhistEra
                                                                                                                                                java.time.format
                                                                                                                                                  DateTimeFormatter
                                                                                                                                                    java.util.concurrent.locks
                                                                                                                                                      StampedLock
                                                                                                                                                        java.util.concurrent
                                                                                                                                                          FutureTask
                                                                                                                                                            PriorityBlockingQueue
                                                                                                                                                              • added
                                                                                                                                                              • added
                                                                                                                                                              • added
                                                                                                                                                              • added
                                                                                                                                                              TimeUnit
                                                                                                                                                                java.util.function
                                                                                                                                                                  Predicate
                                                                                                                                                                    java.util.jar
                                                                                                                                                                      JarEntry
                                                                                                                                                                        JarFile
                                                                                                                                                                          • + deprecated
                                                                                                                                                                          • + forRemoval
                                                                                                                                                                          • + deprecated
                                                                                                                                                                          • + forRemoval
                                                                                                                                                                          • + deprecated
                                                                                                                                                                          • + forRemoval
                                                                                                                                                                          java.util.regex
                                                                                                                                                                            Pattern
                                                                                                                                                                              java.util.spi
                                                                                                                                                                                LocaleNameProvider
                                                                                                                                                                                  • added
                                                                                                                                                                                  • added
                                                                                                                                                                                  java.util.stream
                                                                                                                                                                                    Collectors
                                                                                                                                                                                      java.util.zip
                                                                                                                                                                                        Deflater
                                                                                                                                                                                          • + forRemoval
                                                                                                                                                                                          Inflater
                                                                                                                                                                                            • + forRemoval
                                                                                                                                                                                            ZipFile
                                                                                                                                                                                              • + forRemoval
                                                                                                                                                                                              java.util
                                                                                                                                                                                                ArrayList
                                                                                                                                                                                                  • added
                                                                                                                                                                                                  • added
                                                                                                                                                                                                  DoubleSummaryStatistics
                                                                                                                                                                                                    Formatter
                                                                                                                                                                                                      IntSummaryStatistics
                                                                                                                                                                                                        LongSummaryStatistics
                                                                                                                                                                                                          OptionalDouble
                                                                                                                                                                                                            OptionalInt
                                                                                                                                                                                                              OptionalLong
                                                                                                                                                                                                                Optional
                                                                                                                                                                                                                  PriorityQueue
                                                                                                                                                                                                                    • added
                                                                                                                                                                                                                    • added
                                                                                                                                                                                                                    • added
                                                                                                                                                                                                                    • added
                                                                                                                                                                                                                    Properties
                                                                                                                                                                                                                      Scanner
                                                                                                                                                                                                                        SplittableRandom
                                                                                                                                                                                                                          Collection
                                                                                                                                                                                                                            List
                                                                                                                                                                                                                              Map
                                                                                                                                                                                                                                Set
                                                                                                                                                                                                                                  javax.crypto.spec
                                                                                                                                                                                                                                    javax.security.auth
                                                                                                                                                                                                                                      Policy
                                                                                                                                                                                                                                      java.compiler
                                                                                                                                                                                                                                        javax.lang.model.util
                                                                                                                                                                                                                                          TypeKindVisitor6
                                                                                                                                                                                                                                            TypeKindVisitor9
                                                                                                                                                                                                                                              javax.lang.model
                                                                                                                                                                                                                                                SourceVersion
                                                                                                                                                                                                                                                  java.corba
                                                                                                                                                                                                                                                  java.desktop
                                                                                                                                                                                                                                                    java.awt.geom
                                                                                                                                                                                                                                                      Path2D.Double
                                                                                                                                                                                                                                                        Path2D.Float
                                                                                                                                                                                                                                                          Path2D
                                                                                                                                                                                                                                                            java.awt
                                                                                                                                                                                                                                                              • + implements Serializable
                                                                                                                                                                                                                                                              • + implements Serializable
                                                                                                                                                                                                                                                              • + implements Serializable
                                                                                                                                                                                                                                                              Toolkit
                                                                                                                                                                                                                                                                • + deprecated
                                                                                                                                                                                                                                                                javax.print.attribute.standard
                                                                                                                                                                                                                                                                  javax.swing.plaf.basic
                                                                                                                                                                                                                                                                    BasicMenuUI
                                                                                                                                                                                                                                                                      • added
                                                                                                                                                                                                                                                                      BasicRadioButtonUI
                                                                                                                                                                                                                                                                        installListeners(AbstractButton)
                                                                                                                                                                                                                                                                        • removed
                                                                                                                                                                                                                                                                        uninstallListeners(AbstractButton)
                                                                                                                                                                                                                                                                        • removed
                                                                                                                                                                                                                                                                        javax.swing
                                                                                                                                                                                                                                                                          DefaultComboBoxModel
                                                                                                                                                                                                                                                                            DefaultListModel
                                                                                                                                                                                                                                                                              JPasswordField
                                                                                                                                                                                                                                                                                • added
                                                                                                                                                                                                                                                                                ButtonModel
                                                                                                                                                                                                                                                                                  ListSelectionModel
                                                                                                                                                                                                                                                                                    java.management.rmi
                                                                                                                                                                                                                                                                                      javax.management.remote.rmi
                                                                                                                                                                                                                                                                                        RMIConnectorServer
                                                                                                                                                                                                                                                                                          • added
                                                                                                                                                                                                                                                                                          • + deprecated
                                                                                                                                                                                                                                                                                          • + forRemoval
                                                                                                                                                                                                                                                                                          • added
                                                                                                                                                                                                                                                                                          java.management
                                                                                                                                                                                                                                                                                            java.lang.management
                                                                                                                                                                                                                                                                                              RuntimeMXBean
                                                                                                                                                                                                                                                                                                ThreadMXBean
                                                                                                                                                                                                                                                                                                  java.sql
                                                                                                                                                                                                                                                                                                    javax.transaction.xa
                                                                                                                                                                                                                                                                                                    java.transaction
                                                                                                                                                                                                                                                                                                    java.xml.bind
                                                                                                                                                                                                                                                                                                    java.xml.crypto
                                                                                                                                                                                                                                                                                                      javax.xml.crypto.dsig
                                                                                                                                                                                                                                                                                                        DigestMethod
                                                                                                                                                                                                                                                                                                          SignatureMethod
                                                                                                                                                                                                                                                                                                            java.xml.ws.annotation
                                                                                                                                                                                                                                                                                                            java.xml.ws
                                                                                                                                                                                                                                                                                                            java.xml
                                                                                                                                                                                                                                                                                                              javax.xml.stream
                                                                                                                                                                                                                                                                                                                XMLInputFactory
                                                                                                                                                                                                                                                                                                                  • - deprecated

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

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

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