Loading…

What is Socket in Java?

It is one endpoint of two-way communication between programs that are running on the same network.

A socket is tied to a port number in such a manner that the TCP layer can recognize the application where the data needs to be sent. If you use Socket instead of native code, your programs will communicate platform-independently.

Suggest An Answer

No suggestions avaliable!

Latest post from Java interview questions

Ask Question