How can we find out the size of a java object??
Example:
class Person{
String name;
int age;
public Person(String n, int a){
name = n;
age = a;
}
}
Person person = new Person("Andy", 30);
now how can I know the size of person object??
Thank you