AI, Data Science & Cloud Certificates from Google, IBM & Meta
Learn the Skills Netflix, Meta, and Capital One Actually Hire For
Overview
Google, IBM & Meta Certificates – 40% Off
One Coursera Plus subscription covers most Professional Certificates on Coursera.
Unlock All Certificates
This session explains Java 10 local variable type inference and style guidelines for using `var` to keep code concise and readable. Examples show effective uses and cases where `var` can make code harder to understand.
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