Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Declaring static variable to save memory, memory cost of link

807588Feb 16 2009 — edited Feb 16 2009
If I have plenty of objects of the same class and they have a field that is the same for all objects, do I save memory by declaring it 'static'?

How much memory is used by an object to store a link that points to another object?

/Carlis
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 16 2009
Added on Feb 16 2009
8 comments
165 views