Is java supports multiple inheritance? explain?

Answer Posted / praveenkumar

yes java supports multiple inheritance but not directly.
By implementing single inheritance we can acheive multiple
inheritance.See for example

class A{

some method();

}
class B extends A
{


}

class C extends B
{


}
like tht we can acheive multiple inheritance.

Is This Answer Correct ?    3 Yes 18 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to write a server program and sending the mails to the server using smtp protocol please help me

1633


When does a class need a virtual destructor?

632


Explain about anonymous inner classes in java?

666


How the metacharacters are different from the ordinary characters?

650


What is byte data type?

630






What is comparator in java?

647


What is javac_g?

683


Can we compare two strings in java?

656


How to convert string to byte array and vice versa?

670


What is the difference between the jdk 1.02 event model and the event-delegation model introduced with jdk 1.1?

722


What is procedure overloading?

1890


Describe what a thread-local variable is in java?

655


What is java jit compilers?

645


How many bytes is double?

633


What is the difference between abstract class and interface1? What is an interface?

659