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...
Sur cette page du site, vous pouvez voir la vidéo en ligne How to Use Local Variables in Java? durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Java 28 novembre 2018, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 1,548 fois et il a aimé 29 téléspectateurs. Bon visionnage!