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 literals 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
Bookmark "literals" Watch "literals" New topic
Author

literals

karthika gkumar
Greenhorn

Joined: Apr 15, 2008
Posts: 6
java is case sensitive. but while representing hexadecimal numbers both upper case and lower case letters allowed. how it is possible?
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38519
    
  23
Are you going to say you think it should be programmed to accept only 0xffff or 0XFFFF and not both?
You can program a lexer to be case sensitive or case insensitive, or even to change case. So you can have OxFfFf, just as you can declare a float literal as 12.345f or 12.345F.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: literals