what is difference between class and object?

Answer Posted / revansiddappa p.h.

Class:
Is another kind of data type in oops like structure.
It is static in nature during program execution.

Object:
It is like variable of type class for accessing member
variables and methods.
Objects are dynamic in nature during program execution.
Can be constructed and destroyed.

Is This Answer Correct ?    44 Yes 14 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different types of inheritance in java?

767


What is string in java?

764


Can set contain duplicates?

769


Can private members of a base class are inheritable justify?

690


Can we have try block without catch block?

802


Is map ordered in java?

711


What is constructor in java ?

830


What are the various access specifiers in java?

756


Can we change the value of static variable?

711


How to access arraylist elements in java?

707


What happens when you invoke a thread’s interrupt method while it is sleeping or waiting?

769


How do you sort words in java?

724


What are the differences between heap and stack memory?

762


What is object english?

817


How can I debug the Java security exceptions and AccessControlExceptions?

906