aspose file tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Hexadecimal Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Reply 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: 9955
    
    6

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

"are 19 and 999999999 equal"


Never ascribe to malice that which can be adequately explained by stupidity.
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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Hexadecimal
 
Similar Threads
Wrappers
please help ???? how to convert hexadecimal ,octol to decimal values and back
how to compare md5 hex with string
Hexadecimal
getting the <APPLET> tag to work