0

Why IOException can not be used with Catch block [JAVA]?

JAVA I am trying to use IOException with try catch. But eclipse asks me to switch to throws. It worked for someone teaching on youtube. I am running on JAVA 13. Is it because we are working on different versions? Please share your thoughts and how to fix this.. Thanks

30th May 2021, 4:09 AM
Tom
Tom - avatar
1 Réponse
+ 1
Can you copy the code to the playground, save it, and post a link to it, so that we can see what the issue may be.
30th May 2021, 7:59 AM
ChaoticDawg
ChaoticDawg - avatar