title: memory allocation for a class in java?
body: <p>class B inherits class A. Now when we create an object of type B, what is the memory allocated for B? Is it including A and B, or any other procedure for memory allocation?</p>