- Feb 8, 2004
- 12,604
- 15
- 81
I guess this question could apply to any of the input/output streams.
If i have a Scanner or some other stream and it is local to a say a while loop, will it close by itself when the while loop ceases to function?
If i have a Scanner or some other stream and it is local to a say a while loop, will it close by itself when the while loop ceases to function?