| Author |
difference between true type Long and primitive type long?
|
Edward Chen
Ranch Hand
Joined: Dec 23, 2003
Posts: 758
|
|
what is the difference between true type Long and primitive type long? what siutation I should use which ? Thanks
|
 |
Nathaniel Stoddard
Ranch Hand
Joined: May 29, 2003
Posts: 1258
|
|
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.
|
Nathaniel Stodard<br />SCJP, SCJD, SCWCD, SCBCD, SCDJWS, ICAD, ICSD, ICED
|
 |
 |
|
|
subject: difference between true type Long and primitive type long?
|
|
|