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
How can we make sure main() is the last thread to finish in java program?
What are the wrapped, classes?
What is the difference between public, private, protected, and friend access?
What exactly is java?
Is alive and join method in java?
What is the difference between the prefix and postfix forms of the ++ operator?
What is the largest long allowed by java?
What is an image buffer?
Why is java multithreaded?
What is java lang string?
What are variable names?
Can a class have multiple superclasses?
What is the final access modifier in java?
What is the differences between c++ and java? Explain
What’s the difference between callable and runnable?