what is difference between class and object?
Answer Posted / muthusenthil
Class is a template(type) or blue print its state how
objects should be and behave. eg consider a construction
plan which is a class with this description mentioned in a
plan we can constructs 'n' number of buildings of same type.
these buildings are consider to be an objects come under
same type of that plan.
Object is defined as a software construct which binds data
and logic or methods(functions)together.
| Is This Answer Correct ? | 230 Yes | 47 No |
Post New Answer View All Answers
why Interface used?
is it possible to instantiate the math class?
What are the different access modifiers available in java?
Name the components that are termed to be Heavy-weight component but available in Light-weight components?
take an array with -ve and +ve value both.find out the nearest value of 0(zero).if two values are same like(-2 and +2)then extract +2 is nearest of 0(zero).
How would you use Bubble Sort to sort the number of elements?
When should the method invokelater() be used?
Which command from the jdk compiles a java program?
What does java edition mean?
What are the differences between stringbuffer and stringbuilder?
What are the properties of thread?
What is the difference between hashmap and hashtable? What is an interface?
What is the dot operator?
Difference between start() and run() method of thread class?
what happens when a thread cannot acquire a lock on an object? : Java thread