what is the difference between object and class
Answer Posted / sitaram
Object is a instance of a class.
Class is a template for an object.
Example: suppose we are going to hotel.first we will check
the menu. Menu is a class. we can select the one item from
menu. item is a method or variable. how to select the item.
we can create the object of menu. That is instance of
menu(Object).
| Is This Answer Correct ? | 4 Yes | 3 No |
Post New Answer View All Answers
Explain thread in java?
What happens if we override private method?
In Java list the methods that can be overridden?
What is classname class in java?
how can i use a nonsynchronized hashtable?
State some situations where exceptions may arise in java?
Which language is java?
How many types of java are there?
What is the SimpleTimeZone class?
what is the purpose of the runtime class?
What is an array in java?
What is null data type?
what is an objects lock and which objects have locks? : Java thread
How to find the largest value from the given array.
Can a constructor be made final?