i have a simple chat: server(starting first) and a client(sending message to server and receiving the same message).
In server and client i use
Java Code:
DataInputStream in = new DataInputStream(socket.getInputStream());
DataOutputStream out = new DataOutputStream(socket.getOutputStream());
streams to communicate both in client and server.

Code works fine, but when i change streams to
Java Code:
         BufferedReader in = new BufferedReader(new InputStreamReader( socket.getInputStream()));
         BufferedWriter out = new BufferedWriter(new OutputStreamWriter(socket.getOutputStream()));
server stops in function read from socket and nothing happed.
Why does it happen ?