aspose file tools
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
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Primitive and Object Comparison .. ??" Watch "Primitive and Object Comparison .. ??" New topic

Primitive and Object Comparison .. ??

Mahendra Shelke

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

Joined: Mar 22, 2005
Posts: 42954
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.
It is sorta covered in the JavaRanch Style Guide.
subject: Primitive and Object Comparison .. ??