Java Pointers
class box { // Java box public int value;
}
box a = new box();
a.value = 7; // set variable a
box b;
b = a;
Because internally reference the same value, changes to either a or b will be reflected in the other variable.
Previous slide
Next slide
Back to first slide
View graphic version