New features from Java7 to Java8

Differences from JDK 1.6 (JavaSE6)

[From JDK 1.7 (Java 7 / SE7)] ・ Binary numbers (starting from 0b) can be used for integer literals ・ Underscore can be used for numerical literals -The case string can be used in the Switch statement -Diamond operator <>: Type arguments can be omitted when instantiating a class ・ You can rethrow the exception in catch {} of try ~ catch. -Try statement with resources (try-with-resources): try (type variable = initialization) -Multi-catch of exceptions: catch (Exception A | Exception B)

[From JDK 1.8 (Java 8 / SE8)] ・ Lambda type -Omission of final: It is not necessary to add final to a variable that is practically final. -Method reference: Class name :: Method name ・ Specify multiple same annotations in one place -Functional interface -Date / time API: The package has changed. Date, Calendar, DateFormat → time * This is a very different point

I don't like the fact that it seems to be difficult.

I referred to the following site. New Java Features (Changes in Java)

Recommended Posts

New features from Java7 to Java8
java1.8 new features
Changes from Java 8 to Java 11
Sum from Java_1 to 100
Catch up on new features from Java 7 to Java 9 at once
From Java to Ruby !!
Migration from Cobol to JAVA
Connect from Java to PostgreSQL
From Ineffective Java to Effective Java
Java features
Java features
6 features I missed after returning to Java from Scala
Java 9 new features and sample code
Java to be involved from today
From Java to VB.NET-Writing Contrast Memo-
Java, interface to start from beginner
The road from JavaScript to Java
[Java] Conversion from array to List
Java 14 new features that could be used to write code
[Java] About Java 12 features
Convert from java UTC time to JST time
About Java features
Connect from Java to MySQL using Eclipse
From installing Eclipse to executing Java (PHP)
[Java] Introduction to Java
Post to Slack from Play Framework 2.8 (Java)
Java: How to send values from Servlet to Servlet
[Java] Flow from source code to execution
[Java] From new project creation to automatic test / build / deployment realization
Introduction to monitoring from Java Touching Prometheus
Introduction to java
Precautions when migrating from VB6.0 to JAVA
Memo for migration from java to kotlin
Type conversion from java BigDecimal type to String type
Upsert from Java SDK to Azure Cosmos DB
Run R from Java I want to run rJava
Connect to Aurora (MySQL) from a Java application
To become a VB.net programmer from a Java shop
Migrate from Java to Server Side Kotlin + Spring-boot
Pleiades Eclipse 2020-03 release ~ Java 14 Let's try new features!
How to get Class from Element in Java
[Java] How to switch from open jdk to oracle jdk
I want to write quickly from java to sqlite
I touched on the new features of Java 15
Minecraft BE server development from PHP to Java
Select * from Java SDK to Azure Cosmos DB
Predicted Features of Java
Call Java from JRuby
Java 12 new feature summary
Migrate from JUnit 4 to JUnit 5
Eval Java source from Java
[Java] Connect to MySQL
Access API.AI from Java
Kotlin's improvements to Java
What's new in Java 8
Introduction to java command
Java 10 new feature summary
[Java] Three features of Java
Java 14 new feature summary
What's new in Java 9,10,11
Launch Docker from Java to convert Office documents to PDF