System.out.print("Я здесь"); //выводит
in = new ObjectInputStream(socket.getInputStream());
System.out.print("Я здесь1"); //не выводит
out = new ObjectOutputStream(socket.getOutputStream());
System.out.print("Я здесь2");
This constructor will block until the corresponding ObjectOutputStream has written and flushed the header.