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

 Print  |  
Question:  we know that Object class is super class of every class & a class extends only one class. so
how is it possible to a class to extend other than Object class?





Answer: Because java supports multilevel inheritance.


November 11, 2005 12:35:43 #2
 Mandar Arun Joshi J2EE Expert  Member Since: November 2005    Total Comments: 20 

RE: we know that Object class is super class of every...
 
The half answer is explain by Krishna Prasad and Other half lies in answer of question why java does not support multiple inheritance. And how it has solved that problem using interfaces. 
     

 

Back To Question