GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  J2EE  >  Core Java
Go To First  |  Previous Question  |  Next Question 
 Core Java  |  Question 24 of 502    Print  
How can you do multiple inheritance in Java

  
Total Answers and Comments: 10 Last Update: November 23, 2009   
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: anil sharma
 
muliple inheritance is done with the help of interfaces 
interfaces

Above answer was rated as good by the following members:
Sunni.mca
June 10, 2005 06:26:38   #1  
Vrushali Talokar        

RE: How can you do multiple inheritance in Java
Its not possible directly. That means this feature is not provided by Java but it can be achieved with the help of Interface. By implementing more than one interface.
 
Is this answer useful? Yes | No
July 27, 2005 05:10:53   #2  
anil sharma        

RE: How can you do multiple inheritance in Java
muliple inheritance is done with the help of interfaces
interfaces

 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
August 17, 2005 00:50:23   #3  
kishor        

RE: How can you do multiple inheritance in Java
why use uinterfaces for multiple inheritence in java?
 
Is this answer useful? Yes | No
September 02, 2005 01:09:18   #4  
Pavan        

RE: How can you do multiple inheritance in Java
Java overcame the problem of multiple inheritance exist in C++.In C++ we can create a class by extending from more than one class. It is problematic. So in Java this feature is eliminated. Anyway for getting multiple inheritance Java introduced the concept of interfaces. So we can create a class by extending one class or we can implement any number of interfaces for it. But the restriction is we have to implement / describe every method existing in the interfaces. That's the rule. Ithink u know the concept of Interfaces!!!!!!!!!!!!!!!!!.right
 
Is this answer useful? Yes | No
September 16, 2005 13:53:06   #5  
sonia        

RE: How can you do multiple inheritance in Java

multiple inher.. in java is implemented by INTERFACE


 
Is this answer useful? Yes | No
September 28, 2005 01:39:06   #6  
jayant        

RE: How can you do multiple inheritance in Java
In java multiple inheristance not supports but using keyword 'implements' its allow to inherits multiple inteface separated by comma --- jayant dhargawe
 
Is this answer useful? Yes | No
October 03, 2005 10:19:24   #7  
Devidas Sonawane        

RE: How can you do multiple inheritance in Java

hi Devidas

In Java we can use inheritance by using extends keyword. but by using implements we can inheritance more classes and this less complicated


 
Is this answer useful? Yes | No
August 12, 2006 01:09:52   #8  
Divya        

RE: How can you do multiple inheritance in Java
you can use your own apporach for multiple inheritence
 
Is this answer useful? Yes | No
January 11, 2007 09:00:52   #9  
Anil Omanwar        

RE: How can you do multiple inheritance in Java

hi

To achieve multiple Inheritance in java we must use Interface.


 
Is this answer useful? Yes | No
November 23, 2009 02:02:14   #10  
mohan b Member Since: November 2009   Contribution: 1    

RE: How can you do multiple inheritance in Java
Only through Interface.
 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape