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
Смотрите видео Difference between class and object in Java онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Interview DOT 26 Январь 2014, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 1,286 раз и оно понравилось 4 людям.