I have a class which implements the Runnable interface.From some portion of the class the new thread is created.The class takes the Socket parameter.
When I get into the run method and check the isClosed()method for the socket,it is closed inside the thread.Before calling the start method to run the new thread,the same socket is ok.