Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Var with Style - Local Variable Type Inference in Java 10

Devoxx via YouTube

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore the Local Variable Type Inference feature introduced in Java 10 through this comprehensive conference talk. Learn how to use 'var' for more concise and readable code, understand the style guidelines published by the Java Team, and examine both good uses and potential misuses of this feature. Dive into practical code examples, discover when to avoid using 'var', and gain insights into programming principles such as "programming to the interface." Benefit from Stuart Marks' expertise as he covers topics including type inference, reassignment, generics, and Try-with-Resources examples. Enhance your Java programming skills and learn to write more efficient and maintainable code with this in-depth exploration of Local Variable Type Inference.

Syllabus

Intro
What is type inference
Where can var be used
Reassignment
Examples
Controversy
When to not use var
Principles
Strawman example
Try with Resources example
Try with Providers example
Generics example
Programming to the interface
Context
Example Code
Sample Code
Summary

Taught by

Devoxx

Reviews

Start your review of Var with Style - Local Variable Type Inference in Java 10

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.