Technical Discussion :: Java
Home > Freshers > Technical Interview Questions > Java
7. What is an Interface?Can we instantiate an interface?
Answer:
No, an interface can't be instantiated. Interface is similar to class. Interface can only have abstract methods. A class can implement an interface.
Asked In :: iGate Syntel Inc. Accenture Sopra Steria
No, an interface can't be instantiated. Interface is similar to class. Interface can only have abstract methods. A class can implement an interface.