Vidyalelo
Java Programming · Q72

Java Autoboxing

Programming · Java Programming · question 72

Q72

What will be the correct option of the following Java code snippet? interface ICust class RegularCustomer implements ICust class OneTimeCustomer implements ICust

A.
ICust can be replaced with RegularCustomer
Answer
B.
RegularCustomer can be replaced with OneTimeCustomer
C.
OneTimeCustomer can be replaced with RegularCustomer
D.
We can instantiate objects of ICust

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board