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
What is the difference between ear, jar and war file?
Which characters may be used as the second character of an identifier, but not as the first character of an identifier?
what is handle?
What is the difference between java class and bean?
What are the purpose of introspection?
What are JTA/JTS and how they used by client?
What is the RMI and Socket?
What are various types of class loaders used by jvm?
What is the purpose of the notifyall() method?
What is difference between object state and behavior?
What are the design considerations while making a choice between using interface and abstract class?
Explain the difference between object state and behavior?
Is jvm a overhead?
What is the difference between the font and fontmetrics classes?
Define prototype?