A ________ is used to create a client socket in Java.

  • DatagramSocket
  • InetAddress
  • ServerSocket
  • Socket
In Java, to create a client socket, you use the Socket class. It allows you to establish a connection to a remote server and communicate with it. The other options represent different types of socket classes in Java but are not used for creating client sockets.
Add your answer
Loading...

Leave a comment

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