Question: 30
(Choose 1 answer)
What is the output of the following Java program?
class A {
public A() {
}
System.out.print("A");
class B extends A {
}
public B() {
System.out.print("B,");
class C extends B {
}
public C() {
System.out.println("C");
public class Test {
public static void main(String[] args) {
C c = new C();
A. A,B,C
B. B,C,A
C. B,A,C
D. A,C,B