Abstract
- Compiler or Interpreter automatically figure out the Datatype based on the context
Java Example
We can do
List<Integer> intList = new ArrayList<>()instead ofList<Integer> intList = new ArrayList<Integer>(), the Compiler is smart enough to figure out the Datatype forArrayListbased on the context provided byList<Integer>
Reduce boilerplate code
More concise & readable. However, too much may reduce the readability
