answersLogoWhite

0

What is refrence variable?

Updated: 10/23/2022
User Avatar

Wiki User

12y ago

Best Answer

Reference variables in java is used to refer to an object.

Its a way to access another variable or memory address with a variable and change the data inside the memory address.

It gives direct access to the memory access.

example:-

Box b=new Box();

b is the reference variable of type Box. It can hold reference to any instance of class Box.

new Box() creates an instance of class Box. So b is now pointing to an object of class Box.

shreya..

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is refrence variable?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is call by refrence?

When calling a function, passing a variable's address as function parameter.


What is a reference angle?

A main angle of refrence.


How do you know if a object is in motion?

USE REFRENCE POINT ! >:(


What are some some songs by Taylor Swift that have an allusion in it?

State Of Grace. When she says "you're my achilles heel." Refrence to greek mythology. And Love Story is a refrence to Romeo and Juliet.


What is difference between call by value and call by refrence?

What_are_the_differences_between_call_by_value_and_call_by_reference


You can tell an object has moved when what has changed?

It's Refrence Point .


What is a encyclopedias used for?

The encyclopeidia is a general refrence for Laypersons and Students. Very common in Homes and Schools before the internet.


What is the reference point used for?

refrence point is a point relative to which a motion can be observed


What does bossaru mean?

its a refrence to what paperbatvg says on youtube. its like boss, but aru.


What is defenition of a frame of refrence?

Frame of reference refers to criteria that measurements can be made by.


Type of indent in a reference list?

A hanging indent is used in a refrence list.


What is a cell refrence?

A cell reference is a cell that identifies a particular cell in a spread sheet.