×
☰ See All Chapters

Underscore in Java 9

From java 9 onwards single underscore cannot be used as identifier. Since Java 9, the underscore character is a reserved keyword and as of java 9 it is reserved for future use and has no defined usage. It is just reserved keyword for future use. So from java 9 we find 3 reserved keywords:

const

Reserved for future use

goto

Reserved for future use

_

Reserved for future use

Keywords const and goto are reserved keyword since from the beginning. Underscore is added in java 9.

java-underscore-0
 

Underscore is keyword only when used alone. But can be used with other character in identifiers.

java-underscore-1
 

All Chapters
Author