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 is instance synchronization?

541


How we can run a jar file through command prompt in java?

516


What is a finally block? Is there a case when finally will not execute?

544


What are the types of inner classes (non-static nested class) used in java?

561


Is intellij better than eclipse?

538






What is final method?

578


What is java argument list?

518


Can you give few examples of final classes defined in java api?

559


What is meant by interface?

559


What is a vararg?

547


What is prefix of a string?

569


How do you square a number in java?

549


What is public static?

497


What is method reference?

515


Explain the pointers in Java?

592