Type Inference in Generic
In Java 7, Type Inference is introduced in generics declaration which is used to reduce the coding as well to minimize the compile errors.Made compiler smart enough to infer the type of generic instance. This is done by using "<>" operator and it is called as Diamond Operator. Not required to mention the type in between diamond operator and can be replaced declaring the type as left blank.


