what is difference between class and object?

Answer Posted / deepak

class is a collection of its instance members like
variables and method. Objects are declared in the class.
Objects are nothing but a entity which keeps the refrence.

Is This Answer Correct ?    7 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the benefits of immutable objects?

544


What is the difference between applet and application?

548


how is final different from finally and finalize in java?

611


What is the exact difference in between Unicast and Multicast object?

1517


What happens if constructor is private?

566






How do you get the length of a string in java?

524


How do I stop concurrentmodificationexception?

513


Explain about object oriented programming and its features?

599


What is anonymous inner class?

613


What is treemap in java?

556


How does queue work in java?

532


What is constructor and its types?

541


Can java inner class be static?

562


Why do we need hashset in java?

506


What is linked hashset and its features?

553