A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Programmer Certification (SCJP/OCPJP)
Joined: Jul 29, 2005
Jul 29, 2005 09:59:00
Could somebody tell me whether hexadecimal number 0x1f and 0xffffffff are equal. If they are equal then how. Please let me know that.
Joined: Jun 13, 2005
Jul 29, 2005 10:47:00
0x1f means 31, 0xffff is far greater than that.
write code urself and check it out.
Joined: Oct 02, 2003
Jul 29, 2005 11:18:00
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.
Joined: Aug 03, 2002
Jul 29, 2005 11:41:00
0xffffffff is an
literal with value -1
Have a look at
Corey's Tipline article
[ July 29, 2005: Message edited by: Barry Gaunt ]
Ask a Meaningful Question
Getting someone to think and try something out is much more useful than just telling them the answer.
I agree. Here's the link:
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
please help ???? how to convert hexadecimal ,octol to decimal values and back
how to compare md5 hex with string
getting the <APPLET> tag to work
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013