Java SE 10 & 11: Developer features

In this post we will list mainly focused on the improvements for developers. With the idea of continuing to catch up a bit and at least know how to handle the new and most important features. So we will not go into detail about performance improvements or other less striking features.

Version 10 was the last one released by Oracle for free. And 11 was the next LTS after Java 8 and the first with the new licensing system model. Oracle also created a new release model, releasing a new version every 6 months. Because of that, version 10 was released in March 2018 and 11 in September 2018.

  • Java 10: var type local
    We can now initialize a variable without indicating specifically what type it is. As if it were an untyped programming language.

With some exceptions, such as just declaring it, using it to store a lambda expression or initializing an array.

  • Java 10: Immutable methods
    Now the interfaces List, Map and Set have the new method copyOf that allows the creation of copies of lists that at the same time are immutable. And the method toUnmodifiableList/Map/Set in the Collectors interface.
  • Java 10: New Optional method
    There is now the new orElseThrow() method which is exactly the same as get() but with a more explanatory name.
  • Java 10: Default certificates
    Oracle and Open JDK versions will now come with a default set of trusted entity certificates. Putting an end to TLS problems when using OpenJDK on the way.
  • Java 10: New versioning of Time-based releases
  • Java 11: New String methods
    New utility methods have been incorporated into the String class itself. strip() is an enhancement of trim().
  • Java 11: Var in Lambdas expressions
    We already indicated above that one of the great features of Java 10 was the local variable syntax. Now we can use them in lambdas.
  • Java 11: Making it easier to read and write String in files
    The readString writeString methods have been created to allow this.
  • Java 11: Nested members
    From now on, netmates concepts are incorporated and access between them is improved.
  • Java 11: HTTPClient Standardization
    Introduced in Java SE 9 now becomes a standard.
  • Java 11: Compiling and executing classes with a single command
  • Java 11: Removal of Java EE and CORBA modules
    They were already deprecated in Java SE 9 and now they have been removed:, java.xml.bind, java.activation,, java.corba, java.transaction,,, jdk.xml.bind.

If you want to see all the specifications of Java 10 SE you can see them here and those of Java SE 11 here.



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store