Multiple Choice
Consider the classes below,declared in the same file:
Class A
{
Int a;
Public A()
{
A = 7;
}
}
Class B extends A
{
Int b;
Public B()
{
B = 8;
}
}
Which of the statements below is false?
A) Both variables a and b are instance variables.
B) After the constructor for class B executes,the variable a will have the value 7.
C) After the constructor for class B executes,the variable b will have the value 8.
D) A reference of type A can be treated as a reference of type B.
Correct Answer:

Verified
Correct Answer:
Verified
Q2: Which of the following statements is false?<br>A)
Q3: Every class in Java, except _, extends
Q7: Using the protected keyword also gives a
Q8: Which superclass members are inherited by all
Q10: Which statement is true when a superclass
Q13: Which of the following is the superclass
Q13: The default equals implementation of class Object
Q14: Which method changes the text the label
Q15: Which of the following statements is false?<br>A)
Q16: The default implementation of method clone of