Type Inference: Java 7 Type Parameters
问题 today we talked about advantages of Java 7 in our company. Since Java 7 there is the possibility to define following line Map<String, List<String>> myMap = new HashMap<String, List<String>>(); as Map<String, List<String>> myMap = new HashMap<>(); We had a long discussion about the topic described above. Some of us had the opinion that this is type inference (like var keyword in C#) and the type will be computed at runtime, others thought it's only a simpler way to declare some variable and