Here is my Code:

class Horse {

int HairColor;
String Name;
}

public class RefObjTest {

public static void main (String [] args) {
Horse a = new Horse();
Horse b = new Horse();
Horse c = b;

System.out.println(“We have 3 Horses”);
a.Name = “A”;
b.Name = “B”;
System.out.println(“The first horse is ” + a.Name + “, the second is ” + b.Name + “, and the last ones’ name is ” + c.Name + “.”);
System.out.println(“Changeing Horse c’s Name”);
c.Name = “C”;
System.out.print(“The first horse is ” + a.Name + “, the second is ” + b.Name + “, and the last ones’ name is ” + c.Name + “.”);

}
}

And Here is my Out put.

We have 3 Horses
The first horse is A, the second is B, and the last ones’ name is B.
Changeing Horse c’s Name
The first horse is A, the second is C, and the last ones’ name is C.

The good news is, I can see what’s going to happen.  What I don’t understand is, Why would I want this?  If I’m looking at houses on the street, or horses in the barn, Seems like it would be really inefficient to create a full object for each one. Hmmm Well I suppose it could be just where I’m at in the book, maybe there’s a better way of doing things down the way as far as utilizing the classes that are made.