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 is the map interface in java programming?
What is the difference between pass by reference and pass by pointer?
Define nashorn in java8.
Can an object subclass another object?
How to perform binary search in java?
Why is stringbuffer called mutable?
What does opcode mean?
Write a program to check string is palindrome without using loop?
Can two objects have same hashcode?
Is java still necessary?
What is rmi and steps involved in developing an rmi object?
Is it possible to use string in the switch case?
Difference between association, composition and aggregation?
What is an argument java?
Can we convert integer to string in java?