This week's giveaway is in the Spring forum.
We're giving away four copies of Learn Spring Security (video course) and have Eugen Paraschiv on-line!
See this thread for details.
Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • 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
Pie
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