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
What are identifiers in java?
What is finalize method?
Why is java architectural neutral?
Give few difference between constructor and method?
What is boolean example?
How many ways can an argument be passed to a subroutine and explain them?
What is an empty class? What functionality does it offer in Java?
Name some classes present in java.util.regex package.
What about method local inner classes or local inner classes in java?
Explain the difference between jvm and jre?
What is Java Shutdown Hook?
What are conditionals and its types?
What is strings in java?
What are different types of expressions?
What do you mean by thread safe?