Opening Sockets
The Socket() constructors do not just create a Socket object. They also attempt to connect the underlying socket to the remote server.
All the constructors throw an IOException if the connection can't be made for any reason.
Previous slide
Next slide
Back to first slide
View graphic version