class A
{
private int i;
}
class B extends A
{
private int i;
}

if I create an object of B class what will be the memory of that object.

Answer Posted / bhavya

12 bytes

Is This Answer Correct ?    3 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why does the integer quotient -0/3 yield 0, but the double quotient -0.0/3.0 yields – 0.0?

603


Explain importance of finally block in java?

582


Why are variables important in research?

548


Write a program to reverse a number in java?

558


Can we start a thread twice in java?

508






Can we have this () and super () together?

602


Which language is java?

542


A person says that he compiled a java class successfully without even having a main method in it? Is it possible?

579


What is the maximum size of list in java?

541


How do you use spaces in java?

521


What is data structure in java?

529


What is dot operator?

572


What are the differences between wait() and sleep()?

537


Can we compare two strings in java?

554


What methods are used to get and set the text label displayed by a button object?

550