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?




November 11, 2005 10:52:29 #6
 sushi J2EE Expert  Member Since: November 2005    Total Comments: 3 

RE: what is difference between instance and object.?
 

if i declare any fields in the classi.e not in any methods...they r given a default value,i.e for int its zero(0)..these are instance fields..........an object is an instance of a classi.e the object created is of the class type.

          well, in an interface you can only define the prototype of the methods,it cant contain any implimentations,while in an abstract class there can be absract methods and also implimentations of the method which are not abstract

     

 

Back To Question