Why does java does not support multiple inheritance? Explain
Answer / Swati Chaudhary
Java does not support multiple inheritance of classes to avoid the 'Diamond Problem' and other complications such as ambiguity in method resolution, cyclic dependencies, and problems with constructors. To achieve similar functionality, Java uses interfaces for multiple interface inheritance and composition for implementing multiple class inheritance.
| Is This Answer Correct ? | 0 Yes | 0 No |
How many bits is a double?
In Java list the methods that can be overridden?
What is jar?
How do you identify independent and dependent variables?
What is javac_g?
What is assembly language?
Where and how can you use a private constructor?
There are 2 methods in a class. Both have the same method signature except for return types. Is this overloading or overriding or what is it?
Can we make the abstract methods static in java?
What is the final keyword?
what is bytecode? watz the difference between machine code and bytecode?
Why is it called a string?