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 the use of :: in java?

556


What is polymorphism and what are the types of it?

486


What is string in java with example?

474


What is boolean flag in java?

562


What is a boolean field?

516






What are the rules for naming an array?

514


What are the important features of Java 10 release?

500


Why parsing is done?

491


What is the use of object and class classes?

555


Why does java have two ways to create child threads?

455


How can you make sure that your singleton class will always return single instance in multi-threaded environment?

555


What is a functional interface?

533


How can we pass argument to a function by reference instead of pass by value?

569


Realized?

1644


Name container classes in java programming?

579