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  >  Java

 Print  |  
Question:  What is the difference between Abstract class and Interface

Answer:
Answered by Scott on 2005-05-12 10:03:06: An abstract class can contain non-abstract methods which do not have to be overridden in the subclass. 
 
There is no difference between a fully abstract class (all methods declared as abstract and all fields are public static final) and an interface.


January 01, 2008 13:29:04 #19
 harikrishna   Member Since: November 2005    Total Comments: 1 

RE: What is the difference between Abstract class and Interface
 
the abstract class have  both abstract methods and concrete methods

in case of interface have only abstract methods.

we can not create instance for abstract class and an interface
     

 

Back To Question