- String Pool - is now stored in Heap instead of Permgen
- Try with Resources
try (BufferedReader br = new BufferedReader(new FileReader(path)) {
return br.readLine();
}
- Underscores in numeric literals
- int one_million = 1_000_000;
- Strings in switch
- Improved Type Inference for Generic Instance Creation
- Map<String, List<String>> anagrams = new HashMap<>();
- Multiple exception catching
catch (FirstException | SecondException ex) {
logger.error(ex);
throw ex;
}
- The java.nio.file package
- Concurrency and collections updates (jsr166y)
A lightweight fork/join framework, flexible and reusable synchronization barriers, transfer queues, concurrent linked double-ended queues, and thread-local pseudo-random number generators
- The Garbage-First Garbage Collector
No comments:
Post a Comment