Which exception might be thrown when trying to create a new Socket instance?

  • IOException
  • NetworkException
  • SocketCreationException
  • SocketException
When attempting to create a new Socket instance, you may encounter an IOException if there's an issue with the network connection or if the host is unreachable. It's a common exception in socket programming. The other options are not standard exceptions related to socket creation.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *