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

New APIs in Java 10

Comparing Java 10 (10.0.2-open) with Java 9 (9.0.4-open).

Element Modification
java.base
    java.io
      ByteArrayOutputStream
        FileInputStream
          • + forRemoval
          FileOutputStream
            • + forRemoval
            PrintStream
              PrintWriter
                Reader
                  java.lang.invoke
                    • added
                    • added
                    MethodType
                      java.lang.reflect
                        MalformedParameterizedTypeException
                          java.lang
                            FdLibm.Cbrt
                              Cbrt()
                              • removed
                              FdLibm.Hypot
                                Hypot()
                                • removed
                                FdLibm.Pow
                                  Pow()
                                  • removed
                                  Runtime.Version
                                    • + deprecated
                                    • + deprecated
                                    • + deprecated
                                    Runtime
                                      getLocalizedInputStream(InputStream)
                                      getLocalizedOutputStream(OutputStream)
                                      SecurityManager
                                        inCheck
                                        classDepth(String)
                                        classLoaderDepth()
                                        currentClassLoader()
                                        currentLoadedClass()
                                        getInCheck()
                                        inClass(String)
                                        inClassLoader()
                                        StackWalker.StackFrame
                                          java.net
                                            URLDecoder
                                              URLEncoder
                                                java.nio.channels
                                                  Channels
                                                    java.nio.file
                                                      FileStore
                                                        java.security.acl
                                                          • + forRemoval
                                                          • + forRemoval
                                                          • + forRemoval
                                                          • + forRemoval
                                                          • + forRemoval
                                                          • + forRemoval
                                                          • + forRemoval
                                                          • + forRemoval
                                                          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
                                                                                java.util.jar
                                                                                  JarEntry
                                                                                    JarFile
                                                                                      java.util.spi
                                                                                        LocaleNameProvider
                                                                                          • added
                                                                                          • added
                                                                                          java.util.stream
                                                                                            Collectors
                                                                                              java.util.zip
                                                                                                Deflater
                                                                                                  • + forRemoval
                                                                                                  Inflater
                                                                                                    • + forRemoval
                                                                                                    ZipFile
                                                                                                      • + forRemoval
                                                                                                      java.util
                                                                                                        DoubleSummaryStatistics
                                                                                                          Formatter
                                                                                                            IntSummaryStatistics
                                                                                                              LongSummaryStatistics
                                                                                                                OptionalDouble
                                                                                                                  OptionalInt
                                                                                                                    OptionalLong
                                                                                                                      Optional
                                                                                                                        Properties
                                                                                                                          Scanner
                                                                                                                            SplittableRandom
                                                                                                                              List
                                                                                                                                Map
                                                                                                                                  Set
                                                                                                                                    javax.security.auth
                                                                                                                                      • + forRemoval
                                                                                                                                      java.compiler
                                                                                                                                        javax.lang.model.util
                                                                                                                                          TypeKindVisitor6
                                                                                                                                            TypeKindVisitor9
                                                                                                                                              javax.lang.model
                                                                                                                                                SourceVersion
                                                                                                                                                  java.desktop
                                                                                                                                                    java.awt.geom
                                                                                                                                                      Path2D.Double
                                                                                                                                                        Path2D.Float
                                                                                                                                                          Path2D
                                                                                                                                                            java.awt
                                                                                                                                                              Toolkit
                                                                                                                                                                • + deprecated
                                                                                                                                                                javax.swing.plaf.basic
                                                                                                                                                                  BasicMenuUI
                                                                                                                                                                    • added
                                                                                                                                                                    javax.swing
                                                                                                                                                                      ButtonModel
                                                                                                                                                                        java.management.rmi
                                                                                                                                                                          javax.management.remote.rmi
                                                                                                                                                                            RMIConnectorServer
                                                                                                                                                                              • added
                                                                                                                                                                              • + deprecated
                                                                                                                                                                              • + forRemoval
                                                                                                                                                                              • added
                                                                                                                                                                              java.management
                                                                                                                                                                                java.lang.management
                                                                                                                                                                                  RuntimeMXBean
                                                                                                                                                                                    ThreadMXBean
                                                                                                                                                                                      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 10.0.2-open 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.