what is difference between class and object?

Answer Posted / deepak maurya

object is an instance of a class.
class is a collection of object.

object do not contain sub parts.
class do contain sub part ie; sub-class

object do contain some information.
class do not contain some information

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the 6 functions?

518


Explain how hashmap works?

594


What language is pass by reference?

574


Can we write method inside a method in java?

529


What are keywords and reserved words in java?

563






What are the advantages of defining packages in java?

509


What is tcp ip in java?

592


Why stringbuilder is not thread safe?

545


What is class level lock ?

614


Can an interface extend another interface?

602


Does java support Operator Overloading?

611


Why do we need autoboxing in java?

523


What is the format specifier?

516


What are the benefits of operations in java?

493


What is the difference between serializable and externalizable interfaces?

572