Is multiple inheritance allowed in Java? Why ?

Answer Posted / karthik

"Can some one explain about this case.

-> A is a super class and B extends from A.
-> java.lang.Object is super class for all classes.

now in this case B extends from A and B extend from java.lang.Object(because is default super class) then it is multiple inheritence right? "

Mr Suresh Aelidhe,

If a class extends any other class then it wont extends Object class

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we use string in the switch case?

587


Write a java program to check if a number is prime or not?

541


Why do I need to declare the type of a variable in java?

570


What is the difference between a vector & an array list?

679


What are the rules for variable declaration?

511






What is a function easy definition?

535


What are the 8 data types in java?

533


What are autoboxing and unboxing? When does it occur?

538


What is math in java?

576


What is array sorting in java?

561


Why char array is favored over string for the storage of passwords?

563


What is the difference between size and length in java?

526


what do you mean by classloader in java?

583


How many JVMs can run on a single machine and what is the meaning of Just-In-Time (JIT) compiler?

769


What is a local, member and a class variable?

581