Sockets in Java

A “socket” is an end point in a communication link between separate processes. In Java, sockets are objects which provide a way of exchanging information between two processes in a straightforward and platform-independent manner (see the classes in the java.net package). In fact, sockets in Java are very straightforward, as you will see in this chapter.