Vishal Hegde wrote:
Henry Wong wrote:
BTW, you could have also just tried it -- to see if it works.
I tried it was getting compilation error was just trying
Yes, that structure is legal.
Got compilation error
You've been around here enough that you now by now that ItDoesntWorkIsUseless(⇐click) and if you want help you need to TellTheDetails.(⇐click)
Rob Spoor wrote:That structure is only illegal because the try block never throws an IOException, so you cannot catch it.
Right. I meant the "structure" is legal in that you can have those pieces arranged that way relative to each other. I didn't mean to imply that it should compile as-is.