Underscore in numeric literals

veveTarry

New Member
On official Java site I came across this lines \[code\] you cannot place underscores in the following places: At the beginning or end of a number...\[/code\]Also they have given a example \[code\]int x1 = _52; // This is an identifier, not a numeric literal\[/code\]When I used it in my code it didn't gave any compile time error \[code\]long l = _23L; \[/code\]Can we use \[code\]_\[/code\] at the beginning?What does it mean by \[code\]This is an identifier, not a numeric literal\[/code\]Sorry if it is a really silly question, I haven't revised Java basics from long time. EDIT :
I am using Windows XP and Java 7 \[code\]java version "1.7.0_02"Java(TM) SE Runtime Environment (build 1.7.0_02-b13)Java HotSpot(TM) Client VM (build 22.0-b10, mixed mode, sharing)\[/code\]
 
Top