Home » Tip Bank » Java
  • Comment on this Article
Language: Java
Expertise: Intermediate
Apr 11, 2019
  • facebook
  • twitter
  • in
  • Email

WEBINAR:

On-Demand

Building the Right Environment to Support AI, Machine Learning and Deep Learning


Watch

Using Java Variable Type Inference in Java 10

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 = new ByteArrayOutputStream();

This is a shortcut for:

ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
Octavia Anghel
 
Submit a Tip
Browse "Java" Tips
Browse All Tips
activatejavascript.org
html-color-codes.info