CONTENTS | PREV | NEXT Java Remote Method Invocation


2.8.3 clone

Objects are only cloneable using the Java language's default mechanism if they support the java.lang.Cloneable interface. Remote objects do not implement this interface, but do implement the clone method so that if subclasses need to implement Cloneable the remote classes will function correctly.

Client stubs are declared final and do not implement clone. Cloning a stub is therefore a local operation and cannot be used by clients to create a new remote object.



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