How do you create a `Socket` object in Java for client-server communication?
You create a `Socket` object using `new Socket(serverName, port)`, where `serverName` is the host and `port` is the serverâ€™s port number.
Nice! You have correctly described how to create a `Socket` object.
How would you handle a situation where the server is not available or the connection fails?