https://github.com/g-khan/java10-examples
Java 10 Local Variable Type Inference with Examples
https://github.com/g-khan/java10-examples
Last synced: 8 months ago
JSON representation
Java 10 Local Variable Type Inference with Examples
- Host: GitHub
- URL: https://github.com/g-khan/java10-examples
- Owner: G-khan
- Created: 2020-09-18T12:32:57.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-09-18T12:34:23.000Z (about 5 years ago)
- Last Synced: 2025-01-02T03:09:51.098Z (9 months ago)
- Language: Java
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
**Java 10 Local Variable Type Inference with Examples**
* Java has var style declarations with java 10.
* It allows to declare a local variable without specifying its type.
* The type of variable will be inferred from type of actual object created.All var examples including with fail cases in this repository.