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

Can java cast null?

593


What does the @override annotation do?

552


What is loop in java?

521


Why do we use bufferedreader?

524


How can we make a class singleton?

570






What is the different between get and post?

496


What do you mean by byte code?

501


how to write a program for sending mails between client and server

1542


What is the synonym of framework?

555


whatis Home interface and Remoteinterface? with example?

1538


Explain java heap space and garbage collection?

576


What does a boolean method return?

622


Why we override equals() method?

559


what is the final keyword denotes in java?

575


What is difference in between java class and bean?

560