Using Java Variable Type Inference in Java 10 April 11, 2019 Beginning with JDK 10, we can rely on the Java Local Variable Type Inference (Var Type) in order to avoid explicit typing. Check out the following sample: var outputStream =