Answer the question
In order to leave comments, you need to log in
Why does the program hang when creating an ObjectInputStream?
System.out.print("Я здесь"); //выводит
in = new ObjectInputStream(socket.getInputStream());
System.out.print("Я здесь1"); //не выводит
out = new ObjectOutputStream(socket.getOutputStream());
System.out.print("Я здесь2");
Answer the question
In order to leave comments, you need to log in
Docs: https://docs.oracle.com/javase/7/docs/api/java/io/...
This constructor will block until the corresponding ObjectOutputStream has written and flushed the header.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question