Examveda

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

B. RegularCustomer can be replaced with OneTimeCustomer

C. OneTimeCustomer can be replaced with RegularCustomer

D. We can instantiate objects of ICust

Answer: Option A


This Question Belongs to Java Program >> Java Autoboxing

Join The Discussion

Related Questions on Java Autoboxing

What is autoboxing in Java?

A. The automatic conversion of primitive types to their corresponding wrapper classes

B. The process of creating a new box

C. A feature for manually converting wrapper classes to primitive types

D. A feature for boxing objects