what is difference between class and object?

Answer Posted / bala prasad

class is a collection of methods and static& non static
variables.
Object is the super class of all classes. Object is used to
access non static members of a class.

Is This Answer Correct ?    0 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What environment variables are required to be set on a machine in order to run Java programs?

620


Why Java doesn’t support multiple inheritance?

641


What is charat java?

546


What are basic keywords?

559


What are the different http methods?

536






What is the static import?

593


What is a final class ?

607


What is the size of int?

602


What is difference between static variable and global variable?

552


Can we use synchronized block for primitives?

607


Give any two differences between C++ and java.

562


How can we make sure main() is the last thread to finish in java program?

675


Explain about class in java?

613


What is pass by value?

515


What is lambda programming?

501