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 / shiva

multiple inheritance means a sub class which is derived from
two base classes.

assume that the two base classes has same methods with same
signature.
for eg we create an object for the base class.

now call the any one method of base class with sub class object.
now which method is going to execute?
To avoid this confusion java doesnot support multiple
inheritance.

Is This Answer Correct ?    22 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a condition in java?

1091


What is the main function in java?

1110


What is the collection interface?

1059


How do I convert a numeric ip address like 192.18.97.39 into a hostname like java.sun.com?

1062


What are the types of strings?

1089


How do you compare two strings lexicographically?

977


What is the public field modifier?

1077


Can a serialized object be transferred via network?

1023


What are triggers in DB? Explain their types. How do they work?

1138


Can You Have Virtual Functions In Java?

1203


What is the difference between arraylist and hashset in java?

1239


How infinite loop is declared?

1060


Write a function to print Fibonacci series and Tribonacci series?

1217


Can we inherit a class with private constructor?

1179


Can you instantiate the math class?

1120