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