what is the diffrence between class and object?

Answer Posted / saravana kumar.s

class is a template for attribute and operation of an objects.
object is a instance of class .
object is use to calling class

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to create com object in Java?

653


What is hash code collision?

597


How many bytes is double?

551


What is thread life cycle in java?

586


What is the effect of keeping a constructor private?

479






What do you mean by light weight and heavy weight components?

561


What is linked hashmap and its features?

548


Using callable statement how can you pass out parameters, explain with example?

592


What is sortedmap in java?

555


What is a key in java?

505


Can this keyword be used to refer static members?

552


Why do we use predicate in java?

562


what is the role of xml in core java?? and how we can use it?? can somebody give a sample program with explanation and from where i can read more about xml?????

1808


What is java autoboxing?

541


Can we access instance variables within static methods ?

574