what is difference between class and object?

Answer Posted / devarathnam c,kotagudibanda(po

Hi... Class is a blue print of an object,which is non-live
entity.
Object is instance of class,which is a live entity.

example: Employee is a class
Fruit is a class
but
DEVARATHNAM is an object
ROSE is an object

Is This Answer Correct ?    99 Yes 39 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we override private methods?

546


Explain the difference between private, public, package and protected in java?

599


Is it necessary for the port addresses to be unique? Explain with reason.

575


What is java instanceof operator?

564


What is Gang of four design patterns

596






What are the loops in java?

526


What is stack explain?

502


What exactly is methodology?

486


What does localhost mean?

502


Can java object be locked down for exclusive use by a given thread?

585


What is the difference between procedural and object-oriented programs?

528


Can singleton class be serialized?

516


Write a java program to check if a number is prime or not?

537


What's the base class of all exception classes?

566


What is an eror in java?

559