From the client side, you open a Socket and then:

  oos = new ObjectOutputStream(socket.getOutputStream());
   oos.writeObject(someObject);

On the server side, you use the ObjectInputStream.readObject method.