Sometimes I see API\'s using long or Long or int or Integer, and I can\'t figure how the decision is made for that?
There are a couple of things you can't do with a primitive type:
null valueObjectsUnless you need any of those, you should prefer primitive types, since they require less memory.