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  >  Placement Papers  >  HP (Hewlett-Packard)  >  Technical

 Print  |  
Question:  What are interfaces, abstract classes. What is their purpose and differences ?



July 07, 2005 13:13:06 #1
 Vijaya Bhaskar M   Member Since: Visitor    Total Comments: N/A 

RE: What are interfaces, abstract classes. What is their purpose and differences ?
 
By default all methods present in the interfaces are abstract. where as we can provide mthod definition in the abstract class but we cont provide body to a method in the interface. 
Interfaces provides multiple inheritance in java.  
abstract classes provides the facility to extend the functionality of a class.
     

 

Back To Question