posted 20 years ago
U can send anything that implements Serializble, as input param, or as output in RMI.
While String class implements Serializable, yes, u can send a String .
The whole thing is that when u send a request, from the socket u get an ObjectOutputStream, and an ObjectInputStream. U can readObject() and writeObject on that socket, throught those streams, only if the object send and received can be serializable. Otherwise, it will throw a NotSerializableException