This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Primitive and Object Comparison .. ?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Primitive and Object Comparison .. ??" Watch "Primitive and Object Comparison .. ??" New topic
Author

Primitive and Object Comparison .. ??

Mahendra Shelke
Greenhorn

Joined: May 08, 2006
Posts: 20
Hi Fellow Ranchers , since a few days this question is bugging me a lot .. I am not able to decipher it ..

Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42356
    
  64
What's to decipher? It's a comparison of a Long and a float. If you're wondering how that's possible since one is an object, and the other is a primitive, read up on autoboxing.


Ping & DNS - my free Android networking tools app
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Primitive and Object Comparison .. ??