what is difference between class and object?
Answer Posted / kabita
class is a blueprint/framework which has no physical
existance and it is collection of similar properties and
behaviour of objects.
object is nothing which has physical existance, own
behaviour and properties.
it is also known as instance of class.
ex:Employee is a class and ram is aobject of this class.
Is This Answer Correct ? | 42 Yes | 12 No |
Post New Answer View All Answers
Can the garbage collection be forced by any means?
What is Hierarchy of exception?
What is the purpose of the enableevents() method in java programming?
Do extraneous variables affect validity?
How do you declare a destructor in java?
What is the Scope of Static Variable?
what is thread? What are the high-level thread states? Or what are the states associated in the thread? : Java thread
What is supplier in java?
Explain the purpose of garbage collection in Java?
What is the difference between scrollbar and scrollpane?
List out five keywords related to exception handling ?
Are constructors methods?
How will you get the platform dependent values like line separator, path separator, etc., ?
What is the difference between the jdk 1.02 event model and the event-delegation model introduced with jdk 1.1?
What is public static?