ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories  >>  Software  >>  Core Java  >>  Java J2EE  >>  Java Related
 
 


 

 
 Core Java interview questions  Core Java Interview Questions
 Advanced Java interview questions  Advanced Java Interview Questions
 Swing interview questions  Swing Interview Questions
 EJB interview questions  EJB Interview Questions
 Servlets interview questions  Servlets Interview Questions
 Struts interview questions  Struts Interview Questions
 JDBC interview questions  JDBC Interview Questions
 JMS interview questions  JMS Interview Questions
 SunOne interview questions  SunOne Interview Questions
 J2EE interview questions  J2EE Interview Questions
 Weblogic interview questions  Weblogic Interview Questions
 Websphere interview questions  Websphere Interview Questions
 Java Networking interview questions  Java Networking Interview Questions
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions
Question
why is multiple inheritance not allowed in java?
 Question Submitted By :: Priyavarzhni
I also faced this Question!!     Rank Answer Posted By  
 
  Re: why is multiple inheritance not allowed in java?
Answer
# 1
pointers concept are not supported by java.and to reduce 
the code redundency
 
Is This Answer Correct ?    3 Yes 4 No
B.raja
 
  Re: why is multiple inheritance not allowed in java?
Answer
# 2
Suppose if u inherit from multiple classes and in these 
classes a method of same name exists then the class which 
inherits from these classes gets confused that which one to 
inherit. And this is also because of reducing complexity. 
And above all u will get the multiple inheritance concept 
in java through interfaced.
 
Is This Answer Correct ?    2 Yes 4 No
Haridini
 
 
 
  Re: why is multiple inheritance not allowed in java?
Answer
# 3
because we cann't extend more than one class in java
 
Is This Answer Correct ?    1 Yes 3 No
Ravikiran
 
  Re: why is multiple inheritance not allowed in java?
Answer
# 4
when ever a class extending more then one class. if f1()
method is present all exteding  ...  when we call f1()
method...jvm will confused which class method is called this
lead to ambuity error.....
 java does'nt support multiple inheritance.......
 
Is This Answer Correct ?    2 Yes 1 No
Mahesh Yadav Ch
 
  Re: why is multiple inheritance not allowed in java?
Answer
# 5
Whenever one Sub Class Extends more than one classes, at 
the time of creating that class object, JVM gets confused 
to call the parent class constructor as well as methods.

To avoid this ambuiguity, java doesn't support multiple 
inheritance
 
Is This Answer Correct ?    0 Yes 0 No
Sikinder
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
What is synchronization? How it can be achieved?  2
What is Remote Interface ? CTS4
I have a class which is abstract which contains only the abstract methods. This is similar to an interface. Then, if i have given a choice to choose one of them. Which one i have to choose and why?  4
what is jdk1.5 features? Virtusa2
Can an exception be rethrown? Wipro4
What are init(), start() methods and whey they are called?  2
Can try statements be nested? Wipro2
Different types of Layouts?  5
Can Applet have constructors?  3
Name the class that used to read objects directly from a stream? Wipro2
Can we access a database using applets?  2
Differences between GridLayout and GridBagLayout?  1
Can we add two byte variables and assign the result to a byte variable ? b=b1+b2 where b,b1,b2 are byte types TCS3
How can we find size of the object ? RazorSight1
question on Thread synchronization Huawei1
How many methods does cloneable interface contains?  2
Which class is extended by all other classes?  2
Difference between overloading and Overriding. <Giving a confusing example to test the concept.> (also asked in PA Consultancy Group,iflex,Value chain,IBM,CTS,Accenture, Tarang> Symphony6
Explain the difference between the Boolean & operator and the && operator?  1
What are teh sub-classes of a component class?  2
 
For more Core Java Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com