How to Use Local Variables in Java?

Published: 28 November 2018
on channel: Java
1,548
29

Java 10 introduced a feature called local variable type inference, which enables programmers to declare local variables by using “var” instead of an explicit type. This feature makes it possible to write code that is more concise and more readable. However, it’s also possible for this feature to be misused, obfuscating code instead of making it more readable. The Java team has published a set of style guidelines that help direct programmers toward uses of var that improve code quality and help them avoid uses that detract from code quality.

Style Guidelines for Local Variable Type Inference in Java
https://openjdk.java.net/projects/amb...
Java Local Variable Type Inference: Frequently Asked Questionshttps://openjdk.java.net/projects/amb...

Full presentation from Code One    • Var with Style: Local Variable Type I...  


On this page of the site you can watch the video online How to Use Local Variables in Java? with a duration of hours minute second in good quality, which was uploaded by the user Java 28 November 2018, share the link with friends and acquaintances, this video has already been watched 1,548 times on youtube and it was liked by 29 viewers. Enjoy your viewing!