(Choose 1 answer)
Read the following Java program:
class Person {
public static void display(){
} System.out.println("I am a person");
}
class Student extends Person{
public static void display(){
System.out.println("I am a student");
}
} public class Main {
public static void main(String[] args) {
Student student = new Student();
student.display();((Person) student).display();
}
}
Which of the followings is the program output:
A. I am a person I am a person
B. I am a person I am a student
C. I am a student I am a person
D. I am a student
I am a student
Iv
Exit (25