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 are the parts of a method?

529


Can we override constructor?

527


What does the ‘static’ keyword mean? Is it possible to override private or static method in java?

555


What is an array length?

490


What is a class component?

599






Why inputstreamreader is used in java?

537


What are locale settings?

539


What is java argument list?

511


Define an enumeration?

605


what is optional in java 8?

545


Which sort is best in java?

518


Does .length start 0 java?

555


How do you use nextline in java?

496


Is java a software?

510


What is immutable data?

570