Thanks! Martin
But it is still not clear to me ( I am just a beginner ).
So is there any way I can get the memory size even it is difficult to get it.
Thanks
Avais
Originally posted by Martin Rennix:
There is no easy answer because there is no "sizeof" operator in Java. Java stores extra run-time type information (RTTI) with each object, so it's not just a case of adding up the number of characters in each string.
Martin