Introduced in Java 10 and enhanced in Java 11, local variable type inference allows developers to use the keyword var instead of explicit type declarations for local variables. So, the purpose of this feature is to reduce verbosity.
For instance, rat...