• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Primitive and Object Comparison .. ??

 
Mahendra Shelke
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Fellow Ranchers , since a few days this question is bugging me a lot .. I am not able to decipher it ..

 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic