Helper function to return size of a custom object in java : <p>This is an interview question:
There is a custom PERSON object which have some properties like name, age, gender, etc. Write a generic function which can return the size of this object. It should not use any direct API of Java to get the size of Object. This object can have int, float, char or any custom type also like address.</p>
