DEVFYI - Developer Resource - FYI

Why Java does not support multiple inheritance ?

Java Interview Questions and Answers (part 1)


(Continued from previous question...)

149. Why Java does not support multiple inheritance ?

This is a classic question. Yes or No depends on how you look at Java. If you focus on the syntax of "extends" and compare with C++, you may answer 'No' and give explanation to support you. Or you may answer 'Yes'. Recommend you to say 'Yes'.
Java DOES support multiple inheritance via interface implementation. Some people may not think in this way. Give explanation to support your point.

(Continued on next question...)

Other Interview Questions