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


Please Help Members By Posting Answers For Below Questions

Can the garbage collection be forced by any means?

528


What is Hierarchy of exception?

645


What is the purpose of the enableevents() method in java programming?

583


Do extraneous variables affect validity?

523


How do you declare a destructor in java?

502






What is the Scope of Static Variable?

728


what is thread? What are the high-level thread states? Or what are the states associated in the thread? : Java thread

495


What is supplier in java?

553


Explain the purpose of garbage collection in Java?

566


What is the difference between scrollbar and scrollpane?

607


List out five keywords related to exception handling ?

596


Are constructors methods?

565


How will you get the platform dependent values like line separator, path separator, etc., ?

579


What is the difference between the jdk 1.02 event model and the event-delegation model introduced with jdk 1.1?

610


What is public static?

497