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

New APIs in Java 12

Comparing Java 12 (12.0.2+10-adpt) with Java 10 (10.0.2-open).

Element Modification
java.activation
  • removed
java.base
    java.io
      ByteArrayInputStream
        • added
        • added
        • added
        ByteArrayOutputStream
          • added
          FileInputStream
            finalize()
            • removed
            FileOutputStream
              finalize()
              • removed
              FileReader
                • added
                • added
                FileWriter
                  • added
                  • added
                  • added
                  • added
                  InputStream
                    • added
                    • added
                    • added
                    OutputStream
                      • added
                      Reader
                        • added
                        Writer
                          • added
                          • added
                          java.lang.invoke
                            • added
                            • + implements Constable
                            • added
                            • + implements TypeDescriptor.OfMethod
                            • + implements Constable
                            • added
                            • added
                            • added
                            • + implements Constable
                            • added
                            • added
                            • added
                            • added
                            • added
                            java.lang.ref
                              Reference
                                • added
                                java.lang.reflect
                                  UndeclaredThrowableException
                                    getCause()
                                    • removed
                                    java.lang
                                      Character.UnicodeBlock
                                        • added
                                        • added
                                        • added
                                        • added
                                        • added
                                        • added
                                        • added
                                        • added
                                        • added
                                        • added
                                        • added
                                        • added
                                        • added
                                        • added
                                        • added
                                        • added
                                        • added
                                        • added
                                        • added
                                        • added
                                        • added
                                        • added
                                        • added
                                        • added
                                        • added
                                        • added
                                        • added
                                        • added
                                        • added
                                        Character
                                          • added
                                          ClassNotFoundException
                                            getCause()
                                            • removed
                                            • + implements TypeDescriptor.OfField
                                            • + implements Constable
                                            • added
                                            • added
                                            • added
                                            • added
                                            • added
                                            • added
                                            • added
                                            • + implements ConstantDesc
                                            • + implements Constable
                                            • added
                                            • added
                                            • added
                                            • + implements Constable
                                            • added
                                            ExceptionInInitializerError
                                              getCause()
                                              • removed
                                              • + implements ConstantDesc
                                              • + implements Constable
                                              • added
                                              • added
                                              • + implements ConstantDesc
                                              • + implements Constable
                                              • added
                                              • added
                                              • + implements ConstantDesc
                                              • + implements Constable
                                              • added
                                              • added
                                              Runtime
                                                runFinalizersOnExit(boolean)
                                                • removed
                                                SecurityManager
                                                  checkAwtEventQueueAccess()
                                                  • removed
                                                  checkMemberAccess(Class, int)
                                                  • removed
                                                  checkSystemClipboardAccess()
                                                  • removed
                                                  checkTopLevelWindow(Object)
                                                  • removed
                                                  • + implements Comparable
                                                  • added
                                                  • + implements Comparable
                                                  • added
                                                  • + implements ConstantDesc
                                                  • + implements Constable
                                                  • added
                                                  • added
                                                  • added
                                                  • added
                                                  • added
                                                  • added
                                                  • added
                                                  • added
                                                  • added
                                                  • added
                                                  System
                                                    runFinalizersOnExit(boolean)
                                                    • removed
                                                    Thread
                                                      destroy()
                                                      • removed
                                                      stop(Throwable)
                                                      • removed
                                                      Character.UnicodeScript
                                                        • added
                                                        • added
                                                        • added
                                                        • added
                                                        • added
                                                        • added
                                                        • added
                                                        • added
                                                        • added
                                                        • added
                                                        • added
                                                        • added
                                                        • added
                                                        • added
                                                        • added
                                                        • added
                                                        • added
                                                        CharSequence
                                                          • added
                                                          java.net
                                                            SecureCacheResponse
                                                              • added
                                                              ServerSocket
                                                                • added
                                                                java.nio.channels
                                                                  SelectionKey
                                                                    • added
                                                                    • added
                                                                    Selector
                                                                      • added
                                                                      • added
                                                                      • added
                                                                      java.nio.file
                                                                        Files
                                                                          • added
                                                                          • added
                                                                          • added
                                                                          • added
                                                                          • added
                                                                          Path
                                                                            • added
                                                                            • added
                                                                            java.nio
                                                                              ByteBuffer
                                                                                • added
                                                                                CharBuffer
                                                                                  • added
                                                                                  DoubleBuffer
                                                                                    • added
                                                                                    FloatBuffer
                                                                                      • added
                                                                                      IntBuffer
                                                                                        • added
                                                                                        LongBuffer
                                                                                          • added
                                                                                          ShortBuffer
                                                                                            • added
                                                                                            java.security.interfaces
                                                                                              DSAPrivateKey
                                                                                                • + deprecated
                                                                                                DSAPublicKey
                                                                                                  • + deprecated
                                                                                                  ECPrivateKey
                                                                                                    • + deprecated
                                                                                                    ECPublicKey
                                                                                                      • + deprecated
                                                                                                      RSAKey
                                                                                                        • added
                                                                                                        RSAMultiPrimePrivateCrtKey
                                                                                                          • + deprecated
                                                                                                          RSAPrivateCrtKey
                                                                                                            • + deprecated
                                                                                                            RSAPrivateKey
                                                                                                              • + deprecated
                                                                                                              RSAPublicKey
                                                                                                                • + deprecated
                                                                                                                • added
                                                                                                                • added
                                                                                                                • added
                                                                                                                java.security.spec
                                                                                                                  • - implements AlgorithmParameterSpec
                                                                                                                  • - extends Object
                                                                                                                  • + extends NamedParameterSpec
                                                                                                                  getName()
                                                                                                                  • removed
                                                                                                                  MGF1ParameterSpec
                                                                                                                    • added
                                                                                                                    • added
                                                                                                                    • added
                                                                                                                    PSSParameterSpec
                                                                                                                      • added
                                                                                                                      • added
                                                                                                                      RSAKeyGenParameterSpec
                                                                                                                        • added
                                                                                                                        • added
                                                                                                                        RSAMultiPrimePrivateCrtKeySpec
                                                                                                                          • added
                                                                                                                          RSAPrivateCrtKeySpec
                                                                                                                            • added
                                                                                                                            RSAPrivateKeySpec
                                                                                                                              • added
                                                                                                                              • added
                                                                                                                              RSAPublicKeySpec
                                                                                                                                • added
                                                                                                                                • added
                                                                                                                                • added
                                                                                                                                • added
                                                                                                                                java.security
                                                                                                                                  PrivilegedActionException
                                                                                                                                    getCause()
                                                                                                                                    • removed
                                                                                                                                    Key
                                                                                                                                      • + deprecated
                                                                                                                                      PrivateKey
                                                                                                                                        • + deprecated
                                                                                                                                        PublicKey
                                                                                                                                          • + deprecated
                                                                                                                                          java.text.spi
                                                                                                                                            NumberFormatProvider
                                                                                                                                              • added
                                                                                                                                              java.text
                                                                                                                                                • added
                                                                                                                                                NumberFormat.Field
                                                                                                                                                  • added
                                                                                                                                                  • added
                                                                                                                                                  NumberFormat
                                                                                                                                                    • added
                                                                                                                                                    • added
                                                                                                                                                    • added
                                                                                                                                                    java.util.concurrent
                                                                                                                                                      CompletableFuture
                                                                                                                                                        • added
                                                                                                                                                        • added
                                                                                                                                                        • added
                                                                                                                                                        • added
                                                                                                                                                        • added
                                                                                                                                                        PriorityBlockingQueue
                                                                                                                                                          • added
                                                                                                                                                          • added
                                                                                                                                                          • added
                                                                                                                                                          • added
                                                                                                                                                          TimeUnit
                                                                                                                                                            • added
                                                                                                                                                            CompletionStage
                                                                                                                                                              • added
                                                                                                                                                              • added
                                                                                                                                                              • added
                                                                                                                                                              • added
                                                                                                                                                              • added
                                                                                                                                                              java.util.function
                                                                                                                                                                Predicate
                                                                                                                                                                  • added
                                                                                                                                                                  java.util.jar
                                                                                                                                                                    • + forRemoval
                                                                                                                                                                    • + forRemoval
                                                                                                                                                                    • + forRemoval
                                                                                                                                                                    java.util.regex
                                                                                                                                                                      Pattern
                                                                                                                                                                        • added
                                                                                                                                                                        java.util.stream
                                                                                                                                                                          Collectors
                                                                                                                                                                            • added
                                                                                                                                                                            java.util.zip
                                                                                                                                                                              Deflater
                                                                                                                                                                                • added
                                                                                                                                                                                • added
                                                                                                                                                                                finalize()
                                                                                                                                                                                • removed
                                                                                                                                                                                • added
                                                                                                                                                                                • added
                                                                                                                                                                                Inflater
                                                                                                                                                                                  finalize()
                                                                                                                                                                                  • removed
                                                                                                                                                                                  • added
                                                                                                                                                                                  • added
                                                                                                                                                                                  • added
                                                                                                                                                                                  ZipFile
                                                                                                                                                                                    finalize()
                                                                                                                                                                                    • removed
                                                                                                                                                                                    java.util
                                                                                                                                                                                      ArrayList
                                                                                                                                                                                        • added
                                                                                                                                                                                        • added
                                                                                                                                                                                        OptionalDouble
                                                                                                                                                                                          • added
                                                                                                                                                                                          OptionalInt
                                                                                                                                                                                            • added
                                                                                                                                                                                            OptionalLong
                                                                                                                                                                                              • added
                                                                                                                                                                                              Optional
                                                                                                                                                                                                • added
                                                                                                                                                                                                PriorityQueue
                                                                                                                                                                                                  • added
                                                                                                                                                                                                  • added
                                                                                                                                                                                                  • added
                                                                                                                                                                                                  • added
                                                                                                                                                                                                  Collection
                                                                                                                                                                                                    • added
                                                                                                                                                                                                    javax.crypto.interfaces
                                                                                                                                                                                                      DHPrivateKey
                                                                                                                                                                                                        • + deprecated
                                                                                                                                                                                                        DHPublicKey
                                                                                                                                                                                                          • + deprecated
                                                                                                                                                                                                          PBEKey
                                                                                                                                                                                                            • + deprecated
                                                                                                                                                                                                            javax.crypto.spec
                                                                                                                                                                                                              • added
                                                                                                                                                                                                              javax.crypto
                                                                                                                                                                                                                Cipher
                                                                                                                                                                                                                  • added
                                                                                                                                                                                                                  SecretKey
                                                                                                                                                                                                                    • + deprecated
                                                                                                                                                                                                                    javax.net.ssl
                                                                                                                                                                                                                      HttpsURLConnection
                                                                                                                                                                                                                        • added
                                                                                                                                                                                                                        javax.security.auth
                                                                                                                                                                                                                          Policy
                                                                                                                                                                                                                          • removed
                                                                                                                                                                                                                          java.compiler
                                                                                                                                                                                                                            javax.lang.model.util
                                                                                                                                                                                                                              AbstractAnnotationValueVisitor7
                                                                                                                                                                                                                                • + deprecated
                                                                                                                                                                                                                                AbstractElementVisitor7
                                                                                                                                                                                                                                  • + deprecated
                                                                                                                                                                                                                                  AbstractTypeVisitor7
                                                                                                                                                                                                                                    • + deprecated
                                                                                                                                                                                                                                    ElementKindVisitor7
                                                                                                                                                                                                                                      • + deprecated
                                                                                                                                                                                                                                      • + deprecated
                                                                                                                                                                                                                                      ElementScanner7
                                                                                                                                                                                                                                        • + deprecated
                                                                                                                                                                                                                                        • + deprecated
                                                                                                                                                                                                                                        SimpleAnnotationValueVisitor7
                                                                                                                                                                                                                                          • + deprecated
                                                                                                                                                                                                                                          • + deprecated
                                                                                                                                                                                                                                          SimpleElementVisitor7
                                                                                                                                                                                                                                            • + deprecated
                                                                                                                                                                                                                                            • + deprecated
                                                                                                                                                                                                                                            SimpleTypeVisitor7
                                                                                                                                                                                                                                              • + deprecated
                                                                                                                                                                                                                                              • + deprecated
                                                                                                                                                                                                                                              TypeKindVisitor7
                                                                                                                                                                                                                                                • + deprecated
                                                                                                                                                                                                                                                • + deprecated
                                                                                                                                                                                                                                                javax.lang.model
                                                                                                                                                                                                                                                  SourceVersion
                                                                                                                                                                                                                                                    • added
                                                                                                                                                                                                                                                    • added
                                                                                                                                                                                                                                                    java.corba
                                                                                                                                                                                                                                                    • removed
                                                                                                                                                                                                                                                    java.desktop
                                                                                                                                                                                                                                                      java.awt
                                                                                                                                                                                                                                                        • + implements Serializable
                                                                                                                                                                                                                                                        • + implements Serializable
                                                                                                                                                                                                                                                        • + implements Serializable
                                                                                                                                                                                                                                                        javax.print.attribute.standard
                                                                                                                                                                                                                                                          • added
                                                                                                                                                                                                                                                          javax.swing.filechooser
                                                                                                                                                                                                                                                            FileSystemView
                                                                                                                                                                                                                                                              • added
                                                                                                                                                                                                                                                              javax.swing
                                                                                                                                                                                                                                                                DefaultComboBoxModel
                                                                                                                                                                                                                                                                  • added
                                                                                                                                                                                                                                                                  • added
                                                                                                                                                                                                                                                                  DefaultListModel
                                                                                                                                                                                                                                                                    • added
                                                                                                                                                                                                                                                                    • added
                                                                                                                                                                                                                                                                    ListSelectionModel
                                                                                                                                                                                                                                                                      • added
                                                                                                                                                                                                                                                                      • added
                                                                                                                                                                                                                                                                      java.naming
                                                                                                                                                                                                                                                                        javax.naming.directory
                                                                                                                                                                                                                                                                          Attribute
                                                                                                                                                                                                                                                                            • + deprecated
                                                                                                                                                                                                                                                                            • added
                                                                                                                                                                                                                                                                            javax.naming
                                                                                                                                                                                                                                                                              Name
                                                                                                                                                                                                                                                                                • + deprecated
                                                                                                                                                                                                                                                                                • added
                                                                                                                                                                                                                                                                                java.rmi
                                                                                                                                                                                                                                                                                  java.rmi.server
                                                                                                                                                                                                                                                                                    RemoteRef
                                                                                                                                                                                                                                                                                      • + deprecated
                                                                                                                                                                                                                                                                                      ServerRef
                                                                                                                                                                                                                                                                                        • + deprecated
                                                                                                                                                                                                                                                                                        java.sql
                                                                                                                                                                                                                                                                                          javax.transaction.xa
                                                                                                                                                                                                                                                                                          • removed
                                                                                                                                                                                                                                                                                          • added
                                                                                                                                                                                                                                                                                          java.transaction
                                                                                                                                                                                                                                                                                          • removed
                                                                                                                                                                                                                                                                                          java.xml.bind
                                                                                                                                                                                                                                                                                          • removed
                                                                                                                                                                                                                                                                                          java.xml.crypto
                                                                                                                                                                                                                                                                                            javax.xml.crypto.dsig
                                                                                                                                                                                                                                                                                              DigestMethod
                                                                                                                                                                                                                                                                                                • added
                                                                                                                                                                                                                                                                                                • added
                                                                                                                                                                                                                                                                                                • added
                                                                                                                                                                                                                                                                                                • added
                                                                                                                                                                                                                                                                                                • added
                                                                                                                                                                                                                                                                                                • added
                                                                                                                                                                                                                                                                                                SignatureMethod
                                                                                                                                                                                                                                                                                                  • added
                                                                                                                                                                                                                                                                                                  • added
                                                                                                                                                                                                                                                                                                  • added
                                                                                                                                                                                                                                                                                                  • added
                                                                                                                                                                                                                                                                                                  • added
                                                                                                                                                                                                                                                                                                  • added
                                                                                                                                                                                                                                                                                                  • added
                                                                                                                                                                                                                                                                                                  • added
                                                                                                                                                                                                                                                                                                  • added
                                                                                                                                                                                                                                                                                                  • added
                                                                                                                                                                                                                                                                                                  • added
                                                                                                                                                                                                                                                                                                  • added
                                                                                                                                                                                                                                                                                                  • added
                                                                                                                                                                                                                                                                                                  • added
                                                                                                                                                                                                                                                                                                  • added
                                                                                                                                                                                                                                                                                                  • added
                                                                                                                                                                                                                                                                                                  • added
                                                                                                                                                                                                                                                                                                  • added
                                                                                                                                                                                                                                                                                                  • added
                                                                                                                                                                                                                                                                                                  java.xml.ws.annotation
                                                                                                                                                                                                                                                                                                  • removed
                                                                                                                                                                                                                                                                                                  java.xml.ws
                                                                                                                                                                                                                                                                                                  • removed
                                                                                                                                                                                                                                                                                                  Data Source

                                                                                                                                                                                                                                                                                                  This report is based on simple comparison of all public and protected APIs of the java.* and javax.* packages of JDK builds 12.0.2+10-adpt and 10.0.2-open. It does not make statements about compatibility.

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