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 / k.mahesh

Java does not support multiple inheritance but this problem is solved through interfaces. Interfaces helps Java to achieve several advantages of multiple inheritances without the associated problems\. We can prevent some variables and methods from being accessed by a subclass by declaring them as private.
Always interface gives a template from which we can develop new classes. Interface gives the design part and implementation of the design we must do. Interface tells what to do, but not now how to do. Java supports multiple inheritance through interfaces so that we can take features of tow interfaces into our implementation file.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is prime number in java?

995


How many times finalize method will be invoked? Who invokes finalize() method in java?

1020


What are methods?

1025


What is api in java?

980


Is nullpointerexception checked or unchecked?

1031


What is the difference between int and integer in java?

1032


Why are data types important?

1092


What is java virtual machine and how it is considered in context of java’s platform independent feature?

1173


How to add menushortcut to menu item?

1002


Can you start a thread twice in Java?

1117


Is 64bit faster than 32 bit?

1070


What is the format specifier?

938


what is enumset?

1124


Differentiate between a class and an object.

1031


How to overcome the exception object reference not set to an instance of object?

1153