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 do you understand by private, protected and public?

523


What is anti pattern in programming?

500


What are reference variables in java?

596


How does arraylist work in java?

534


Can a final variable be null?

546






Tell some latest versions in JAVA related areas?

558


Can a source file contain more than one class declaration?

512


What is singleton math?

578


What is arrays aslist in java?

521


What is meant by overloading?

588


Which of the following is not an isolation level in the JDBC

1612


Class c implements interface I containing method m1 and m2 declarations. Class c has provided implementation for method m2. Can I create an object of class c?

1022


What is preparedstatement in java?

563


What is wrapper class html?

531


What is currentthread()?

575