Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Does Java support multiple Inheritance?

Answer Posted / sadikhasan,meta

Java does not support multiple inheritance because it
creates a dimond problem.

if we want to implement multiple inheritance in java then we
use interfaces which support multiple inheritance.

e.g.
interface B
{
}
interface C
{
}
class A implements B,C
{
}

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can I import same package/class twice?

952


When a thread is executing a synchronized method , then is it possible for the same thread to access other synchronized methods of an object ?

1039


Write a program to calculate factorial in java?

1005


What is a singleton class in Java?

1069


Is it necessary for the port addresses to be unique? Explain with reason.

1018


What is the use of singleton?

966


What is the difference between length and size in java?

991


Why collection is called framework in java?

991


What is the difference between static method and instance method in Java?

1210


Why is a constant variable important?

959


Why stringbuffer is faster than string?

1043


What is nullpointerexception in java?

1159


Why hashcode is used in java?

973


Can we have any code between try and finally blocks?

1021


Explain the difference between jdk, jre, and jvm?

1041