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 / sharandesai

Java supports Multiple Inheritence using Interface concept
by providing common implementations , and more important to
observe is every class that we use in java is inherited by
Object class, so even though we can extend from other
classes, This clearly shows that JAVA supports Multiple
Inheritence..(Sharandesai007@gmail.com)

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the advantages of packages in java?

507


What is a text string?

613


What is the final class modifier?

551


Difference between string, stringbuffer and stringbuilder?

560


How do you reverse a list?

543






What is meant by JVM? Is JVM platform independent or not?

567


what is optional in java 8?

543


What is byte value?

545


What are the two ways to create a thread?

521


How to sort an array in java without using sort method?

518


Define immutable object?

573


What is a JAR file?

582


What is implicit object in java?

537


Differentiate between stringbuffer and stringbuilder in java.

546


What is nullpointerexception?

549