posted 12 years ago
The final variable id never gets incremented and always have the value that it has been initialized with.
While creating different objects, the static nextId gets incremented and assigned to the instance variable id - but once assigned the id variable stays unmodified for the instance with which it's associated.