Skip to main content
January 10, 2023
Question

If isReachable throws an IOException in Java, what is the right step to do and why?

  • January 10, 2023
  • 0 replies
  • 0 views

If isReachable throws an IOException in Java, what is the right step to do and why?

The application, I believe, should halt the process and output the system message: the host is not accessible. Because isReachable throws an IOException, the host cannot be reached. But I'm not sure what the solution is. I would be grateful if you could assist me.

Thank you very much