Java does not support multiple inheritance.
how interface helps in the same?

Answer Posted / sachin ghare

It might be possible. Inherited both classes contain same method. And java by defualt polymorpic so at the time of compilation it will generate error.that's why. Interface contain astract methods so it Will manage stuff

Is This Answer Correct ?    6 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you write a conditional statement?

523


What is the symbol for average?

524


Is java an ide?

530


How many types of variables are there?

676


Is java same as core java?

595






How many bits is a 64 bit byte?

539


Why to use nested classes in java?

592


What is percentage in java?

577


What does the “static” keyword mean?

585


What are adapter classes?

606


What is java reflection api?

561


What is argument in java?

540


What are some examples of variable costs?

495


What does I ++ mean?

613


What is the dot operator?

575