How can we find size of the object ?
Answer Posted / m!r@
public class FindSizeOfObject{
public static void main(String[] args) throws Exception{
Runtime obj = Runtime.getRuntime();
System.out.println(obj.totalMemory() - obj.freeMemory());
}
}
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Implement two stacks using a single array.
How can a gui component handle its own events?
What does substring mean?
If you are given the name of the function at run time how will you invoke the function?
What is a method in java?
Which variable is the independent variable?
What are the major advantages of internal iteration over external iteration?
Tell us something about an iterator.
List some important characteristics on jre
Is void a data type in java?
Do I need java for windows 10?
How concurrent hashmap works?
Why can we not override static method?
What is a wrapper method?
Can we make constructors static?