File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Hexadecimal Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Hexadecimal " Watch "Hexadecimal " New topic
Author

Hexadecimal

Vishal Arora
Greenhorn

Joined: Jul 29, 2005
Posts: 9
Hi,
Could somebody tell me whether hexadecimal number 0x1f and 0xffffffff are equal. If they are equal then how. Please let me know that.
Santana Iyer
Ranch Hand

Joined: Jun 13, 2005
Posts: 335
0x1f means 31, 0xffff is far greater than that.
write code urself and check it out.
fred rosenberger
lowercase baba
Bartender

Joined: Oct 02, 2003
Posts: 11499
    
  16

They're definatly not equal. your asking the equivilent of

"are 19 and 999999999 equal"


There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
0xffffffff is an int literal with value -1

Have a look at Corey's Tipline article.
[ July 29, 2005: Message edited by: Barry Gaunt ]

Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Hexadecimal