what is difference between class and object?
Answer Posted / maurya
class is a totally logical perseption while we r making a
class we think only WHAT and HOW. but an object is fully
physical perseption when we create an object we get th
physical entity of class. object has its existance but a
class dont.
through WHAT of a class we define state ie. what should be
in my object and through HOW we define behavior of object
ie. how and what function perform on my object to change
its behavior.
an object is actually type of class.....!!
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
What is the integer of 16?
What is lambda in java?
Explain jdk, jre and jvm?
What is increment in java?
What is t type java?
What is a boolean used for?
What is the use of callablestatement?
How many types of classes are there in java?
What is the difference between overriding & overloading?
In case of inheritance what is the execution order of constructor and destructor?
Can we cast any other type to boolean type with type casting?
Which of the following is not an isolation level in the JDBC
How does finally block differ from finalize() method?
Explain about procedural programming language or structured programming language and its features?
Which browsers work with java?