GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Interview Questions  >  J2EE  >  Core Java
Go To First  |  Previous Question  |  Next Question 
 Core Java  |  Question 24 of 493    Print  
How can you do multiple inheritance in Java

  
Total Answers and Comments: 9 Last Update: January 11, 2007   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
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 | No
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


 
Go To Top


 Sponsored Links

 
Sponsored Links

 




About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape