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...

why java does not support multiple inheritance

Answer Posted / sskur

To say why java doesn't support inheritance directly like c++
should be the diamond problem faced by c++,

(Diamond problem is an ambiguity that arises when two
classes B and C inherit from A, and class D inherits from
both B and C. If a method in D calls a method defined in A
(and does not override it), and B and C have overridden that
method differently, then via which class does it inherit: B,
or C?)

Is This Answer Correct ?    206 Yes 22 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why null value is used in string?

1028


What is java lang object?

964


What are the types of sockets in java?

1132


Is a method a procedure?

1046


What is the difference between a factory and abstract factory pattern?

1134


Explain what do you mean by functional overloading in java?

1004


What is java thread dump, how can we get java thread dump of a program?

990


What is internal variable?

1003


In how many ways we can do synchronization in java?

954


Why do we need wrapper classes?

1064


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

1100


what is thread? : Java thread

974


What is parsing in grammar?

1035


Can we use catch statement for checked exceptions?

955


What is singleton pattern?

1091