CONTENTS | PREV | NEXT Java Remote Method Invocation


2.8 Object Methods Overridden by the RemoteObject Class

The default implementations in the Object class for the equals, hashCode, and toString methods are not appropriate for remote objects. Therefore, the java.rmi.server.RemoteObject class provides implementations for these methods that have semantics more appropriate for remote objects. In this way, all objects that need to be available remotely can extend java.rmi.server.RemoteObject (typically indirectly via java.rmi.server.UnicastRemoteObject).



CONTENTS | PREV | NEXT
Copyright © 1997 Sun Microsystems, Inc. All Rights Reserved.