Can you extend more than one interface?

Answer Posted / rajeshbonepalli

An interface can extend other interfaces, just as a class
can extend or subclass another class. However, whereas a
class can extend only one other class, an interface can
extend any number of interfaces. The interface declaration
includes a comma-separated list of all the interfaces that
it extends.

interface Sameinterface1 { }

interface Sameinterface2 { }

interface Sameinterface3 { }
....

...
interface SameinterfaceN { }

interface Sameinterface4 extends
Sameinterface1 ,Sameinterface2 ,...Sameinterface3 ,
SameinterfaceN {

}

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the maximum size of array in java?

506


Why java is a platform independent? Explain

525


What is the difference between arraylist and hashset in java?

508


What is the meaning of find and replace?

518


Can we create object of static class?

520






What is a condition in java?

524


What methodology can be utilized to link to a database?

497


How do you use parseint in java?

506


What is string in java? String is a data type?

569


Explain access modifiers in java.

572


How do you classify Dialog Box?

638


Can list contain null in java?

617


What does you mean in math?

531


Give differences between Quicksort & Mergesort. When should these sorts be used and what is their running time?

567


What is hashtable and explain features of hashtable?

552