So I have the next situation in my program: e.g I have wrapper
ObjectOutputStream out = new ObjectOutputStream(clientSocket.getOutputStream());
I know that if I close most outer stream all inner stream will close automatically, but what will if I close the only inner stream ? Will I have memory leak or something ? Is it problem ? For example I want to close socket (it's automatically closing input/output streams), but should i care about not closed wrappers ObjectOutputStream
/ObjectInputStream
???