Question: QUESTION 28 Given the following code, find the compilation error. public class Test public static void main(String[] args) { Object o; Person p; o =

 QUESTION 28 Given the following code, find the compilation error. public
class Test public static void main(String[] args) { Object o; Person p;

QUESTION 28 Given the following code, find the compilation error. public class Test public static void main(String[] args) { Object o; Person p; o = new Person; o = new Student(); p=new Object(); p = new Person(); p=new Studento; } class Person extends Object { } class Student extends Person { } } class Person extends Object { } class Student extends Person { 3 } p= new Person() causes an error o = new Person() causes an error o p=new Object( causes an error O o = new Student() causes an error o p=new Student() causes an error

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!