Is java supports multiple inheritance? explain?
Answer Posted / vijayhukkeri@gmail.com
No. Java does't support multiple inheritance. It supports
only multilevel inheritance.Multiple inheritance is
possible in interfaces by using implements keyword.
ex: class a
{
----
}
class b extends a
{
----
}
class c extends a,b // this is not possible
ex2: class a
{
----
}
class b implements a
{
----
}
class c implements a,b // possible
{
---
}
Is This Answer Correct ? | 9 Yes | 4 No |
Post New Answer View All Answers
What are the methods to rectify ambiguities in the interfaces in JAVA?
What happens if a try-catch-finally statement does not have a catch clause to handle an exception that is thrown within the body of the try statement?
What access modifiers can be used for variables?
Is hashset ordered?
What is the function of java?
Implement a stack with push (), pop() and min() in O(1) time.
What is an interface in java?
Where can i get Latest SUN Certification Dumps and what are the Sun Certification Codes that are available, Im new to JAVA, so please gimme info as i need to write J2EE - Core Java Certification
we have syntax like for(int var : arrayName) this syntax is to find whether a number is in the array or not.but i want to know how to find that number's location.
A non-static inner class may have object instances that are associated with instances of the class’s outer class. A static inner class does not have any object instances.
What function extracts specified characters from a string?
What is a byte array?
What is currentthread()?
What are the 4 versions of java?
What type of value does sizeof return?