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
What is immutable data?
placement papaers of spring computing technology
Can an anonymous class be declared as implementing an interface and extending a class in java programming?
What is super?
What is java used for on a computer?
What is the difference between C++ and Java and your preferences?
Define an applet in java?
What are the changes in java.io in java 8 ?
Why is the main method static?
What are the two environment variables that must be set in order to run any java programs?
What is a double vs float?
Which of the classes will have more memory allocated?
How to make object serializable in java?
Which is faster string or stringbuilder?
What if I write static public void instead of public static void in java?