Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 760 Bytes

README.md

File metadata and controls

38 lines (26 loc) · 760 Bytes

Java 10

Oracle, OpenJDK


Var

  • Local variable type inference
  • ! instance variable
  • method local variable
  • ! keyword
    • backward compatibility
import java.util.HashMap;

HashMap<String, Integer> stringIntegerHashMap1 = new HashMap<>();
var stringIntegerHashMap2 = new HashMap<String, Integer>();

copyOf()

  • java.util.List
  • java.util.Map
  • java.util.Set
    • ava.lang.UnsupportedOperationException

Container Awareness

  • JVMs are now aware of being run in a docker containers
  • Extract container-specific configuration instead of querying the OS itself
  • -XX:-UseContainerSupport
  • ...