Java 7 Type Inference
Java 7 introduced a new feature Type Interface which provides ability to compiler to infer the type of generic instance. We can replace the type arguments with an empty set of type parameters () diamond. Before Java 7 following approach was used: List list = new List(); We can use following approach with Java 7: … Read more