posted 15 years ago
Hi All,
A very basic question. I have a VO, where in for one member variable I have option of storing either:
a) a long value, id
b) Enum
MY VO could be:
In general which one is better?
Or side questions could be:
If we need to compare long value (e.g. long1 == long2) and navType.FINAL.equals(NAVType.Final), which one is better?
I do understand, that memory footprints of using Enum is better than using Long.
SCJP 5.0
http://sites.google.com/site/duddlutechnologies/home