Can we create object of interface?

Can we create object of interface?
Answer
No, you cannot instantiate an interface. Generally, it contains abstract methods (except default and static methods introduced in Java8), which are incomplete. … From the class we are trying to − create an object of the interface and print the num value.
 

Tìm kiếm

Back
Top