• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to calculate size of a java object?  RSS feed

 
J Lalit
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

i want to know,how we can calculate size of any arbitrary java object- may be programatically or any other way??


Thanks
[ July 22, 2008: Message edited by: lalit jangra ]
 
Rob Spoor
Sheriff
Posts: 21135
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please SearchFirst.

This question has been asked multiple times, the last time even today: here.

This old thread has quite a good answer, including an excellent link to an article on JavaWorld.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!