Can an interface extands a class?

Answer Posted / manikandan.s

No,Interface can't extends class.It ll throw compile time
exception.

can
class extends class
class implements interface,interface,...
interface extends interface

can't

class extends class,class
interface implements class

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are default methods ?

568


What is polymorphism in java? What are the kinds of polymorphism?

566


What is method overloading in JAVA? Why is it not present in C ?

584


How to find the index of the largest number in an arraylist java?

510


What is the purpose of finalization in java programming?

554






What is printwriter in java?

504


What is the size of boolean variable?

566


What is the role of the java.rmi.naming class?

514


What are the changes in java.io in java 8 ?

543


what is mutual exclusion? : Java thread

545


Explain the use of javap tool.

625


What is the difference between Java Program Constructor and Java Program Method, What is the purpose of Java Program constructor Please Explain it Breafily?

587


Explain a few methods of overloading best practices in java?

498


What are java annotations?

637


What is the difference between processes and threads?

528