Multiple Choice
For the questions below, use the following partial class definitions:
public class A1
{
public int x;
private int y;
protected int z;
...
}
public class A2 extends A1
{
protected int a;
private int b;
...
}
public class A3 extends A2
{
private int q;
...
}
-Which of the following is True with respect to A1, A2 and A3?
A) A1 is a subclass of A2 and A2 is a subclass of A3
B) A3 is a subclass of A2 and A2 is a subclass of A1
C) A1 and A2 are both subclasses of A3
D) A2 and A3 are both subclasses of A1
E) A1, A2 and A3 are all subclasses of the class A
Correct Answer:

Verified
Correct Answer:
Verified
Q3: All classes in Java are directly or
Q7: Consider the following class hierarchy and answer
Q8: A mouse event is a(n)<br>A) listener<br>B) object<br>C)
Q9: Why shouldn't an abstract method be declared
Q11: For the questions below, assume that Student,
Q12: Regarding the Software Failure: Mid-air collisions were
Q13: JApplet is an extension of the Applet
Q15: For the next questions, consider the following
Q37: The protected visibility modifier provides the best
Q45: The relationship between a parent class and