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


Please Help Members By Posting Answers For Below Questions

What are the methods to rectify ambiguities in the interfaces in JAVA?

580


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?

658


What access modifiers can be used for variables?

575


Is hashset ordered?

542


What is the function of java?

508






Implement a stack with push (), pop() and min() in O(1) time.

622


What is an interface in java?

555


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

1367


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.

1564


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.

535


What function extracts specified characters from a string?

558


What is a byte array?

585


What is currentthread()?

568


What are the 4 versions of java?

552


What type of value does sizeof return?

528