Can you extend more than one interface?

Answer Posted / ganesh

we can extends one or more interfaces by using an interface.
i.e)Multiple inheritance is available in case of interfaces.

we can't extends an interface by using a class,but we able
to implemented.

Sytax:

1)interface interfacename1 extends interface2 //true
2)interface interfacename1 extends
interface2,interfacename2,..............interfacenamen //true

Is This Answer Correct ?    16 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is variable declaration and definition?

732


How destructors are defined in java?

877


Can a static method be final?

747


What is the nested interface?

784


What is the list interface?

817


Explain the hierarchy of java exception classes?

790


What is the difference between interface & abstract class?

778


Is logger a singleton?

707


What is difference between float and double?

687


What is cr keyboard?

843


What is singleton class in java and how can we make a class singleton?

806


Are arrays primitive data types?

832


What are filterstreams?

823


Is a copy constructor?

804


What is time complexity java?

751