Multiple Choice
Example Code Ch 09-4
Given the following partial class definition:
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;
...
}
-Refer to Example Code Ch 09-4: 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
Q2: Consider a class named Name which has
Q3: All classes in Java are directly or
Q4: Which of the following is true about
Q6: Java does not support multiple inheritance but
Q7: The instruction super(); does which of the
Q8: Example Code Ch 09-1<br>Consider the following class
Q9: If a programmer writes a class that
Q10: Why is it a contradiction for an
Q11: Explain the difference between using an imported