How can we find size of the object ?

Answer Posted / suvarna

getObjectSize(Object objectToSize)
Returns an implementation-specific approximation
of the amount of storage consumed by the specified object.

Is This Answer Correct ?    0 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is instance synchronization?

520


What will be the initial value of an object reference which is defined as an instance variable?

612


What is difference between stringbuffer and string?

464


What is a null point?

533


What is a prefix function.write down a code to compute prefix function.

516






Differentiate between nested and inner class in java.

524


What is java virtual machine and how it is considered in context of java’s platform independent feature?

617


Can we convert integer to string in java?

563


How to do a true java ping from windows?

592


Can we override private methods?

521


What are the main differences between notify and notifyAll in Java?

552


Why is java so popular?

610


Difference between ‘>>’ and ‘>>>’ operators in java?

612


How do you clear an arraylist in java?

477


Why null value is used in string?

509