Hi Bill
Max's code starts the RMI Registry on the "well known" port: 1099. The rebind is just using that well known port. It would not work if you used any other port.
This would be a good time for you to visit the
Naming API - this will explain how you can specify the port number in the name that you use as a parameter to bind(), rebind(), lookup() ....
I suggest you look at that reference first, then come back with any questions after that.
By the way, the LocateRegistry.createRegistry() method returns a reference to the registry that is started, so you could call rebind() on that reference and then you would not need the port number either.
Regards, Andrew