Can you write Java code for declaration of multiple
inheritance in Java ?
Answer Posted / manjula
Multiple Inheritance is not allowed in java. Instead of
this, interfaces are used to implement multiple inheritance
concept.
syntax: interface interface_name
{
data & method declaration;
}
The interafaces in java always contain final fields and
abstract methods
| Is This Answer Correct ? | 11 Yes | 1 No |
Post New Answer View All Answers
Is the ternary operator written x : y ? Z or x ? Y : z ?
What value does read() return when it has reached the end of a file?
What does module-relative mean?
What is the relationship between the canvas class and the graphics class?
Which textcomponent method is used to set a textcomponent to the read-only state?
how do you Handle Front End Application data against DB with example?
Which component handles cluster communication in jboss?
Name three component subclasses that support painting?
Difference between hashmap and hashtable?
What is the infobus?
How many times may an objects finalize() method be invoked by the garbage collector?
What is RMI and what are the services in RMI?
What method is invoked to cause an object to begin executing as a separate thread?
Why won’t the jvm terminate when I close all the application windows?
What are the design considerations while making a choice between using interface and abstract class?