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 / aruna raman
Yes-Java does not support multiple inheritence but supports
Multi level inheritence.
A class can extends only one class(which also extends from
object class), So this a multi level inheritance not
multiple inheritence.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Why unicode is important?
What is == in java?
How do you check if a character in a string is a digit or letter?
Explain the difference between extends thread vs implements runnable in java?
What is json parser in java?
In a program, initializing an array of 100 KB is throwing an out of memory exception while there is 100 MB of memory available. Why?
What is hashing principle in java?
Explain the difference between throw and throws in java?
What are the two parts of a conditional statement?
What is difference between local variable and global variable?
What are the practical benefits, if any, of importing a specific class rather than an entire package (e.g. Import java.net.* Versus import java.net.socket)?
Explain the polymorphism principle?
What is the use of parse function in java?
What are the advantages of autoboxing?
Can singleton class be cloned?