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

Explain the private protected method modifier?

548


Explain the reason behind ending a program with a system.exit(0)?

602


What is the difference between static and non-static variables in java programming?

523


Why does java doesnt suuport unsigned values?

1800


Why does java have two ways to create child threads? Which way is better?

548






Can a method be static?

528


Difference between linkedlist and arraylist.

594


Write a program based on Java script program.

652


Write a program to search a number in the given list of numbers.

634


How do you classify Dialog Box?

649


What are local variables?

597


Is java map thread safe?

495


Who found java?

553


Can a singleton class be inherited?

532


Is it compulsory for a try block to be followed by a catch block in java for exception handling?

596