Knowing the size of an object is a common requirement. There are multiple ways e.g. Serialization, freeMemory(), etc. Unfortunately, no way is a standard way and each has its drawbacks also. ObjectSize-Java caters the drawbacks and calculates size.
- Any class/sub class in the Object need not be Serializable
- If an Object is counted once, it would not be counted again (Reference)
Be the first to post a review of Object Size - Java!