I\'m trying to pick up Java and wanted to test around with Java\'s client/server to make the client send a simple object of a self defined class(Message) over to the server.
The reason is, that the readObject() in ObjectInputStream is practically implemented as:
String s = readClassName(); Class c = Class.forName(s); // Here your code breaks Object o = c.newInstance(); ...populate o...