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

Explain different ways of creating a thread. Which one would you prefer and why?

813


Is java a super set of javascript?

853


What is the association?

775


What are three advantages of using functions?

768


Does java allow default arguments?

787


What is the difference between a static and a non-static inner class in java programming?

745


Difference between method overloading and overriding.

806


Write java program to reverse string without using api?

766


Can a class be a super class and a sub-class at the same time? Give example.

1170


Difference between operator overloading and function overloading

843


Where local and global variables are stored?

812


Are arrays static in java?

806


What is object in java?

773


What is the functionability stubs and skeletons?

916


What is a substitution variable?

812