Click here - / @interviewdot to get notifications. Difference between class and object in Java
A Job Portal
http://www.InterviewDot.com http://www.InterviewDot.com http://www.InterviewDot.com
One Click Dream Job - http://www.interviewdot.com/upload-re...
Are you looking for a new Job ?
InterviewDot.com - A Job Portal
http://www.InterviewDot.com http://www.InterviewDot.com http://www.InterviewDot.com
One Click Dream Job - http://www.interviewdot.com/upload-re...
Difference between 'Class' and 'Object' in Java ? Java Interview Question and Answer ?
The terms 'class' and 'object' are absolutely related to one another, but each term holds its own distinct meaning.
The term 'class' refers to the actual written piece of code in which the class is defined. A class is a static piece of code that consists of attributes which don't change during the execution of a program -- like the method definitions within a class.
Please remember - "An object is an instance of a class ".
Every object must belong to a class. Objects are created and eventually destroyed -- so they only live in the program for a limited time.
An instance of the Animal class would be a specific animal -- like a lion, a cat, or a camel. These instances of the Animal class would be called objects.
Difference between class and object in Java
Watch video Difference between class and object in Java online without registration, duration hours minute second in high quality. This video was added by user Interview DOT 26 January 2014, don't forget to share it with your friends and acquaintances, it has been viewed on our site 1,286 once and liked it 4 people.