when studying RMI sometimes (head first Java) dudes use
Naming.rebind(name, object)
but other peoples on the web (oracle) use
Registry registry = LocateRegistry.getRegistry();
registry.rebind(name, object);
I know that hf java is a little old, but i don't see the Naming class deprecated.
So, what's the difference then?