Which of the following can be used for the host name to establish a socket connection with

Question:

Which of the following can be used for the host name to establish a socket connection with the server running on the same machine with the client?

(a) "127.0.0.1"

(b) InetAddress.getLocalHost()

(c) "localhost"

(d) All of the above.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: