Answer Posted / pradip mishra(b-tech it)
Lets start with an example. You must have contacts of many
people in your mobile. You can use a contact to call a
person. The person is actually somewhere else, but the
contact helps you to call them. You can think of a
Reference variable to be a contact and Object to be the
actual person you are calling. Basically a reference
variable just points to an actual object. For example if we
have a class,
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
What is isa relationship?
What is the difference between procedural and object-oriented programs?
What do you understand by the bean persistent property?
Can we override constructor?
What is bubble sorting in java?
What is the use of default method in interface in java? Explain
How does enum work in java?
What is parsing in java?
Why heap memory is called heap?
What access modifiers can be used for methods?
Does java linked list allow duplicates?
how can you catch multiple exceptions in java?
What is a class instance variable?
What is passing value java?
What does super keyword do?