what is difference between class and object?
Answer Posted / lolo
OBJECT
A software bundle of related state and behavior. Stores the
state in fields and express its behavior through methods.
The methods operate on an object's internal state. Object
is a Physical reality.
CLASS
We can define a class as a blueprint from which the
individual objects are created. Uses a new operator to
create the instance of the class. Class is a logical
construct.
| Is This Answer Correct ? | 84 Yes | 22 No |
Post New Answer View All Answers
What are the practical benefits, if any, of importing a specific class rather than an entire package (e.g. Import java.net.* Versus import java.net.socket)?
Is java an ide?
If a method is declared as protected, where may the method be accessed?
Why is java so popular?
What is string variable?
What are the advantages of java over C++?
What is the difference between a constructor and a method?
What are different types of classloaders?
How to obtain a performance profile of java program
What is a substitution variable?
String class is defined under which package in java?
what is meant by abstract class?
Can we use catch statement for checked exceptions when there is no chance of raising exception in our code?
what state does a thread enter when it terminates its processing? : Java thread
What are the parts of methodology?