ContactUs :

Please send your Questions & Answers or Feedback to "mohan@javabook.org"

Is there any way in java to find of size of an object ?

There is no particular command to find of size of an object in java (like sizeof() operator of C/C++ ) but you can check Runtime r = Runtime.getRuntime() ;r.freeMemory() ;before and after the creation of the new Object.By subtraction u can get the used memory.

Related Posts Plugin for WordPress, Blogger...
Flag Counter