Your browser does not support JavaScript and this site utilizes JavaScript to build content and provide links to additional information. You should either enable JavaScript in your browser settings or use a browser that supports JavaScript in order to take full advantage of this site.

If you try to execute the following code with a input and output stream that are somehow coupled: localin = new ObjectInputStream ( input_stream ) ; localout= new ObjectOutputStream ( output_stream ) ;

you get some kind of deadlock. The following will work: localout= new ObjectOutputStream ( output_stream ) ; localin = new ObjectInputStream ( input_stream ) ;