Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

all are saying java doesn't support multiple inheritance but
by default Object class is super class for all the user
defined classes and we can extend atmost one class so each
class can extend more than one class so java supports
multiple inheritance?i am confused with this,pls any one
explain me.

Answer Posted / kartik naidhruva

Its foolish to say a class extends more than one class...
Who told u that!!!!
inorder to implement multiple inheritance in java we use
INTERFACES....
with the help of interfaces we can Partially implement
Multiple inheritance

Is This Answer Correct ?    2 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you mean by inner class in java? Explain

201


Why generics are used in java?

195


What about interrupt() method of thread class ?

215


What is indexof in java?

159


Is logger a singleton?

154






Which variables are stored in stack?

140


Explain about interrupt() method of thread class ?

212


What does main method?

163


Can you run java program without main method?

169


Does constructor be static?

166


What is data member in java?

154


When should I use singleton?

168


What is difference between array and vector?

151


What is final method in java?

156


what is daemon thread and which method is used to create the daemon thread? : Java thread

174