throwing IOException in a method signature
<p>Let say that I throw an exception in a methods signature - exception like IOException.</p>

<p>I know that I can't use finally scope inside the method in order to close the streams that I have already created, because I dont use try and catch in my code.
so what make sure that those streams will be close in my program? </p>

<p>Thanks!</p>