why java does not support multiple inheritance

Answer Posted / priyanka

Multiple inheritance means derive class from multiple
classes but java can't extend multiple classes. it can
extend one class but multiple interfaces. so create
multiple interfaces n then implement it.

Java have such fzacility to avoid ambiguty.
Thank u

Is This Answer Correct ?    35 Yes 17 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Hi.... I applied for the post of scientific officer/Engineer-SB(Programmer).Please post the syllabus and sample papers.

1760


When should I use stringbuffer?

786


What about interrupt() method of thread class ?

838


What is bean? Where it can be used?

838


What is java in simple terms?

766


What are thread groups?

760


How do you add spaces in java?

742


Explain hashset and its features?

832


Is it possible to define a method in java class but provide it’s implementation in the code of another language like c?

820


What super () does in java?

674


Is a string literal?

727


Can we split string with in java?

754


How to sort an unsorted array in java?

864


Why string is not thread safe?

770


What do you mean by formatting?

744