Abstract
- Compiler or Interpreter automatically figure out the Datatype based on the context
- For example, in [Java, 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 forArrayList
based on the context provided byList<Integer>
Reduce boilerplate code - more concise & readable
Too much may reduce the readability