What is the output of the following code?
```
public class Test {
public static void main(String[] args) {
new Person().printPerson();
new Student().printPerson();
}
}
class Student extends Person {
private String getInfo() {
return "Student";
}
}
class Person {
private String getInfo() {
return "Person";
}
public void printPerson() {
System.out.println(getInfo());
}
}
```
a. Person Person
b. Person Student
c. Stduent Student
d. Student Person
a. Person Person
You might also like to view...
You need to publish Flash movies to a(n) ____ file before you can insert them in Dreamweaver.
A. FLA B. HTML C. SWF D. Both b and c
Report view allows you to change the page layout such as from landscape to portrait view, or to change margins
Indicate whether the statement is true or false
Which of the following is NOT an option for arithmetic operators?
A. Percent (%) B. Division (/) C. Rate ($) D. Exponentiation (^)
__________ occurs when an application running on a Web server inserts commands into a user's browser session and causes information to be sent to a hostile server.
Fill in the blank(s) with the appropriate word(s).