java - RMI: are fields of remote object serialized and sent to client? -


i have following code:

public class foo implements someremote {   private string verysecretstring;   public void dosomething(){...} } 

as understand foo somehow serialized , sent rmi server rmi client. so, can client access anyway verysecretstring?

as understand foo somehow serialized , sent rmi server rmi client.

no. if foo exported remote object won't sent anywhere. stub sent.

so, can client access anyway verysecretstring?

no.


Comments