how can be object class inherited to all class in a program
when java does not support multiple inheritance??
Answers were Sorted based on User's Feedback
Answer / ashok yadav
A class always extends only one class. That is the Object
class or the class defined with the extends keyword. That
class in turn can extend also only one class until eventual
the Object class is reached.
| Is This Answer Correct ? | 4 Yes | 0 No |
Actuly in above it is the case of multilevel inheritance.and obj clas is super class which is extended by other classes tht is tree structure i.e 1 - * form . Multiple inheritance is wher 1 class is having 2 or more base class at same time ie *-1. So it is not multiple it is hiricle inheritnce.
| Is This Answer Correct ? | 0 Yes | 0 No |
What are methods in java?
What is temp in java?
What is meant by data hiding in java?
Can i have abstract class with no abstract methods?
Why strings in java are called as immutable?
what is the difference between AWT and SWING what is the advantage of using swing?
Can we create object of inner class in java?
What are the advantages of inner classes?
Which is best ide for java?
When will we use them?
Is java a utf 8 string?
What one should take care of, while serializing the object?