Answer Posted / midhun h kumar
No ...
Multiple inheritance is not allowed in Java...
but infact we can achieve the functionality using interfaces...
we can define interfaces and any class can implement these
interfaces..
a class can implement any number of interfaces but can
extend only one class..
thus we can achieve what we expect to get from multiple
inheritance thru interfaces...
Is This Answer Correct ? | 10 Yes | 2 No |
Post New Answer View All Answers
What is the generic class?
Which sorting algorithm is best in java?
What is runtime polymorphism or dynamic method dispatch?
Which is easier netbeans or eclipse?
How can we make sure main() is the last thread to finish in java program?
How many types of flags are there?
How can we pass argument to a function by reference instead of pass by value?
What is a singleton class in Java?
Can we sort set in java?
What is the difference between method overriding and overloading?
What is the technique adopted to create an immutable class?
What about features of local inner class?
Is an empty arraylist null?
What is array length?
How many static init can you have?