File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Beginning Java
Reply locked New topic

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

Joined: Jul 20, 2005
Posts: 10441

Locking this one. Please continue this discussion in your other thread here

[My Blog] [JavaRanch Journal]
I agree. Here's the link:
subject: Underscores in Numeric Literals doubt
It's not a secret anymore!