Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
What are the main features that JDK has added?
Home
JAVA
What are the main features that JDK has added?
0
votes
asked
Feb 28, 2023
in
JAVA
by
rajeshsharma
What are the main features that JDK has added?
jdk
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Feb 28, 2023
by
rajeshsharma
The following are some of the key features that JDK 7 introduced:
A better diamond operator type inference.
Adding support for strings in switching and case expressions
Try-with-resource or automatic resource management
Fourth-Join Framework
Use an underline in literal numbers
Capability of using a single catch block to catch numerous exceptions
Binary literals beginning with "0b"
The updated File API and Java NIO 2.0
G1 Garbage Collectors
...