This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
hi ... if u go thru thr books u will find this: an "object" is any real world entity that has some well defined behavior.. and so on.. In the similar way a "class" can be defined as the logical collection of similar objects. Now lets go in a general way so that we can understand these definations. Eg:if u consider the human beings as a class , then each person will become a object of that human class. hence the class will be a logical collection of similar objects.. Now the selection if classes and objects is a purely relative matter...it differs from person to person. One can define a all the Gents as a class and each man will be the object of that class..and so on..and depends on the perticular problem.. Now lets consider a application example: Lets say we need to keep track of all the employees of a perticular company...then we can make a class called Employee and employee1,employe2..and so on as objects of that class... hope this helped u ..... thanx...bye
Every "thing" is an Object. The class "Object" is a generic class that contains methods that are common to all java objects. Every java object inherits from (extends) Object even if it is not expressly written. For example, java.lang.String extends Object. So does any class that you write.
JavaBeginnersFaq "Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt