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 lists of instance data are accessible in class A2?
A) x, y, z, a, b
B) x, y, z, a
C) x, z, a, b
D) z, a, b
E) a, b
Correct Answer:

Verified
Correct Answer:
Verified
Q1: Abstract methods are used when defining<br>A) interface
Q39: An Applet implements MouseMotionListener and is 600x600
Q40: If you instantiate an Abstract class, the
Q41: For the questions below, assume that Student,
Q43: Assume a class Triangle has been defined.
Q45: Clicking the mouse button generates three mouse
Q46: An Applet implements MouseMotionListener. Write the mouseMoved
Q47: You may use the super reserved word
Q48: Java doesn't support multiple inheritance; but it
Q49: An Applet implements MouseMotionListener. Write the mouseMoved