Introduction to Local Variable Type Inferences: Declare Var, Not War

Written by iashish | Published 2021/01/07
Tech Story Tags: java | features | learn-java | how-to | coding | java-development-resources | software-development | coding-skills | web-monetization

TLDR In Java 10 a new feature Local-Variable Type Inference was added. It was aimed at reducing boilerplate code and improving the readability of local variables with initializers. It can be used in Java 10 but not in Java 11. Developers should use it judiciously and use it sparingly. It's not supported in some areas where it can't be used and where it is not supported. The feature was added to the OpenJDK version of Java 10 for the first time this year.via the TL;DR App

no story

Written by iashish | Programmer at Work
Published by HackerNoon on 2021/01/07