Ask Questions  
  Feed Back  
  My Questions  
  Contact Us  
  About Us  

 Interview Questions  
 Our Services  

NewInterviewQuestions.com - Home for World's Largest Interview Questions Website.


Add to My Questions Add to My Questions | Forward Forward | Print Print

Question Question why there is no multiple inheritance in java ,what was the reason behind it?
Answer Answer

to avoid diamond problem of inheritance,java avoided multiple inheritance.Diamond problem : if two classes derive from samae class and another class dervies from these two classes,then there will be ambiguity as to decide whose properties to derive

Answered By: shanthi    Date: 2/8/2008

To avoid the ambiguity which is resultant of multiple inheritance implementation.

Answered By: MOHAN G KUMAR    Date: 2/11/2008

multiple inheritance is not used in java but we will use interface in java

Answered By: ff    Date: 2/11/2008

in case of multiple inheritence,there is more than one superclass.In java,a class can not be subclassed of more than one superclass.For this reason,instead of multiple inheritence,java implements special feature which is interface.

Answered By: Supriya Pratihar    Date: 2/15/2008

There is interface in java which provide all the features of multiple inheritance.

Answered By: priya    Date: 2/15/2008

Java does not have multiple inheritance because when a sub class is derived from two super class, while referring to the method of the same name the keyword 'super' does not know which method to invoke.

Answered By: Anilvaj    Date: 2/20/2008

java don't use the multiple inheritance beacuse there is problem when we drive one class from two super classes then (if both super class have method of same name ) which method we call. to resolve this problem java use Interface .

Answered By: vineet    Date: 4/18/2008

to avoid diamond problem of inheritance,java avoided multiple inheritance.Diamond problem : if two classes derive from samae class and another class dervies from these two classes,then there will be ambiguity as to decide whose properties to derive

Answered By: brijesh gupta    Date: 5/31/2008

Reduce the complexcity & dimond problem. We can easily get the functionality of multiple inheritance by package

Answered By: brijesh gupta    Date: 5/31/2008

© NewInterviewQuestions.com

If you have the better answer, than send it to us. We will display your answer after the approval.
Answer Answer:*
Name Name:*
Email Address Email Address:*
     Verification Code Code Image - Please contact webmaster if you have problems seeing this image code Not readable? Load New Code
Process Verification  Enter the above shown code:*

Rate the above answer. Help us to know about the answer.
Category Category Java Interview Questions
Rating Rating (3.1) By 75 users
Added Added 1/24/2008
Views Views 1
Rate it Rate it!
Free Offers Free Offers: 300 Free Magazines for you. No credit card required. No Shipping Charges. Absolutely Free for 1 Year.

Please Note: We keep on updating better answers to this site. Subscribe to our newsletter to get notified when better answer is posted.

Notify me when answer is posted!


Latest 10 Answers
When there is any situation that u should attach a new patch to ur kernel , then download the patch and install it,to make changes to kernel , go to ok prompt and type boot -r, it will update or reconfigure the kernel
Honesty, helpful and reliable
procedure is a set of sql statement ,are combined to gether to perform a specific task or to solve a specifi problem.it does not return value.
leadership is power to influence a group so that the members willingly exert efforts as aspired by the leader.
I have the unique combination of technical skill and the ability to build strong customer relationship. I have the ability to stay focussed in stressfull situation. I would be great addition to your team.
first execute the bc search spec to fetch the data then executes the applet search spec if applet search spec is not match with bc it skips
TCP-Transmission Control Protocol. TCP is Reliable. TCP is Connection oriented. UDP-User Datagram Protoco UDP is Unreliable. UDP is Connectionless.
By default in structure all data member and member function are public,i,e if you not mentation any access specifier. But in case of class By default all data member and member function are private.
Structure is a user defined data type. By default all structure variables are public type and we cann't use access specifier in structure type variable, where as in class we can define objects(variables) under required access specifier type.
variable cost is the cost which is not fixed in nature

Newinterviewquestions.com is a part of Vyom Network. Top

Copyright © 2018, newinterviewquestions.com. All rights reserved Privacy Policy | Terms and Conditions

Page URL: http://www.newinterviewquestions.com/interview/12006/Default.asp?cachecommand=bypass

Download Yahoo Messenger | Web Hosting | Dedicated Server | Free SMS Domain Registration | Windows Hosting | Linux Hosting | Java Hosting | Virtual Dedicated Server | Dedicated Server | Reseller Web Hosting | Unlimited Windows reseller hosting | Unlimited Linux reseller hosting | Cheap Windows reseller hosting | Cheap Linux reseller hosting | Cheap Windows hosting | Best Windows hosting | Windows hosting Multiple Domains | Unlimited Windows hosting | Compare hosting plans | Cheap Linux hosting | Best Linux hosting | Linux hosting Multiple Domains | Unlimited Linux hosting | Cheap asp.net hosting | Best asp.net hosting | unlimited asp.net hosting | Cheap asp.net reseller hosting | Unlimited asp.net reseller hosting | Java Features | Cheap Java hosting | Best Java hosting | unlimited Java Hosting | Unlimited Linux reseller hosting | Java Hosting Multiple Domains Quick2host Reviews Buy Online Traffic