This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Underscores in Numeric Literals doubt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply locked New topic
Author

Underscores in Numeric Literals doubt

saloni jhanwar
Ranch Hand

Joined: Feb 09, 2012
Posts: 583


I've mindset that as 0x is used to represent hex number same as 0 at 0_52 is being used to represent octal number so actual number will be 52.Hence _ before 52 should not be valid.please help


Tell the difficulties that i am difficult.
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10069
    
163

Locking this one. Please continue this discussion in your other thread here http://www.coderanch.com/t/585151/java/java/Underscores-Numeric-Literals

[My Blog] [JavaRanch Journal]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Underscores in Numeric Literals doubt