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:  what is difference between instance and object.?
what are the all difference between interface and abstract class?




April 04, 2007 11:20:36 #10
 Raj kumar   Member Since: Visitor    Total Comments: N/A 

RE: what is difference between instance and object.?
 

The main difference between abstract class and interface is,


1. Abstract class has the constructor, but interface doesn't have.

2. Main reason is abstract class contain the instance variable, that why it has
the constructor, where as interface has only constants (final variables and
ABSTRACT METHODS).

3. A class which can implement the interface, is not implement all methods which
are declared in interface , such class is declared as abstract class. that mean
abstract class is a subtype of an interface.


This is my conclusion. If you have an queries let me know.

     

 

Back To Question