what is difference between class and object?

Answer Posted / shweta

class is a basically collection of object.its also called as
a blueprint of object and object is a instance of a
class.for eg.men is a class ans jay,raj is a member of a class.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of string and stringbuffer?

551


What is better- service oriented or batch oriented solutions?

1535


What is passing parameters in java?

522


What do you understand by access specifiers in Java?

586


What are scriptlets?

598






why would you use a synchronized block vs. Synchronized method? : Java thread

537


What is printwriter in java?

519


What is contract between hashcode and equal method?

567


Can you use this() and super() both in a constructor?

522


Program to Find the second largest element in an array.

591


What is this () in java?

578


What are locale settings?

552


What is data member in java?

501


Can you extend singleton class?

602


What is difference between class and object in java?

528