what is difference between class and object?
Answer Posted / renjith
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. The properties of a class
do not change before, during, or after the execution of a program.
The term ‘object’, however refers to an actual 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. While objects are ‘living’ their properties may also be changed signficantly.
Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is anagram word?
Explain the hierarchy of java exception classes?
What is unicode full form?
What is java oops?
What is reverse function?
What is type safety in java?
What are the wrapped, classes?
What is variable declaration and definition?
What is methods in java?
What do you mean by default constructor in java?
What is the use of parseint in java?
Can a constructor call the constructor of parent class?
What is the purpose of garbage collection in java?
Is zero a positive integer?
Is call by reference possible in java?