Kizspy | Question: 33
(Choose 1 answer)
What is the output of the following Java program?
abstract class A {
private String my_name = null;public String myName() {
}
my_name = "test";return my_name;
abstract void display();
} public class Main extends A {
void display() { String n = myName();
System.out.println(n);
}
public static void main(String args[]) {
A obj = new Main();obj.display();
}
FUOV
}
A. test
B. Runtime error
C. null
D. None of the others