Using Long or long, Integer or int in as properties in beans?
posted 9 years ago
I'm wondering if there are good reasons for using wrappers such as Long instead of long and Integer instead of int when declaring property types in beans or domain objects? When I've been looking at other examples/bits of code it seems that most of them prefer using Wrapper classes instead of primitive data types. Doesn't object types take up more memory? it must be more efficient to use primitives.