Yes.
Suppose you have code like this:
class Foo { ...
public int getBar () { ...
public void setBar (int bat) { ...
Now, elsewhere you have code like this:
Foo [] glorblarr = new Foo [12];
Foo flarg = new Foo ();
...
flarg.setBar (100);
glorblarr [7] = flarg;
System.out.println (flarg.getBar () + " " + glorblarr [7].getBar ());
glorblar [7].setBar (987);
System.out.println (flarg.getBar () + " " + glorBlarr [7].getBar ());
You should expect the output to be this:
100 100
987 987
At this point, globarr [7]
refers to the same Object as flarg
. That is, one Object, but it is accessible via two names / references. At least until one of the references is changed to point to something else (or null
), one is an alias for the other.