Question: public class Parent { } public class Child extends Parent { } Given above 2 classes, which statement will give compile time err Pick ONE

public class Parent {}
public class Child extends Parent {}
Given above 2 classes, which statement will give compile time err
Pick ONE OR MORE options
List Parent >p= new ArrayList Child >();
List Child >c= new ArrayList Child >();
List Parent >p= new ArrayList Parent );
List Child >c= new ArrayList Parent >();
 public class Parent {} public class Child extends Parent {} Given

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!