Is there any built in function in java to find the size of the object? If not, what is the alternative?
- Posted by: Ashfaq M
- Posted on: December 26 2006 05:01 EST
Any specific reasons for knowing it?. What is your requirement? If using 1.5, you can check out the following URL http://weblogs.java.net/blog/mister__m/archive/2004/02/playing_with_th_1.html ~Rajesh.B
See this link: http://www.jroller.org/page/maxim?entry=again_about_determining_size_of Uses same approach, but does full size estimation. Regards, Maxim