what is difference between class and object?

Answer Posted / santosh

objects basic runtime entities.object tack up space in memory.
when program executed the objects are sending messages each other.

class contain so many objects.class is set of data members and member functions.we invoke class must create object.

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does substring create a new object?

530


What is the inheritance?

553


Differentiate between a constructor and a method? Can we mark constructors final?

678


What is method overloading in JAVA? Why is it not present in C ?

594


What is array initialization in java?

497






why Java does not support multiple inheritances?

706


What is the use of string and stringbuffer?

555


Is a boolean variable?

523


what is recursion in java

602


Explain about anonymous inner classes ?

582


Explain list interface?

524


What is the maximum size of arraylist in java?

498


What is included in core java?

588


Write a program to print 15 random numbers using foreach of java 8?

549


What mechanism does java use for memory management?

496