Type inference with var was introduced to reduce the verbosity of the Java language. It will help the programmers to be more concise in their methods. The compiler infers the type of the variables declared using var and inserts it in the bytecode. There is no need to refactor existing or legacy code, replacing explicit data types of local variables with var.