What is the difference between instance, object, reference and a class? - JAVA Interview Questions

What is the difference between instance, object, reference and a class?


Class: A class is a user defined data type with set of data members & member functions

Object: An Object is an instance of a class

Reference: A reference is just like a pointer pointing to an object

Instance: This represents the values of data members of a class at a particular time



Click Here to See Answer .....
Did you like this article ?
Subscribe to my RSS feed and get more JAVA Question, and Guideline, Plus a lot more great advice to help your Software Career.

1 comments:

trustno1 said...

programming codes about java language
Java Script Trim() function

Related JAVA Questions Posts