what is difference between class and object?

Answer Posted / akhandam revathi

CLASSES- A class is a collection of objects of similar
type. Ex:mango,apple and orange are members of the class
fruit.


OBJECTS- An object is an abstract representation of a real
world entity that has a unique identity,embedded properties
and the ability to interact with each other.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you do descending order in java?

521


Difference between object instantiation and construction ?

582


What are the different types of collections in java?

530


Explain what do you mean by functional overloading in java?

557


How do you check if a character in a string is a digit or letter?

511






What is a Null object?

892


Describe string intern() methodology

596


Can we use both this () and super () in a constructor?

556


What does %4d mean in java?

843


Java openings 3 - 5 years, Lnt Infotech. requirements - core java, J2ee, struts, hibernate Interview Date:- 19 March 2011 Time:- 9:00 AM to 12:00 Pm Interview Location - L & T Infotech, Manapakkam, Chennai Refererral PS NO:- 291649 (Please mention this when u fill the form only then u will be considered for interview) Documents Required:- Latest Resume, Photograph and last 3 payslips Mail me on vasan2211@gmail.com once u appear for interview

2856


Java Compiler is stored in JDK, JRE or JVM?

1052


What super () does in java?

486


What is comparator in java?

559


Is there a way to increase the size of an array after its declaration?

602


What is class??

760