• Post Reply Bookmark Topic Watch Topic
  • New Topic

difference between true type Long and primitive type long?  RSS feed

 
Edward Chen
Ranch Hand
Posts: 798
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is the difference between true type Long and primitive type long? what siutation I should use which ?

Thanks
 
Nathaniel Stoddard
Ranch Hand
Posts: 1258
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One is a primitive, and one is not. As you know, you can only put Objects in collections and so forth. In that case, you would need the non-primitive long. Other places I'm not sure there's any precedent for using one over the other. Situations do vary, however. Use your best judgement based on your understanding of the difference.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!