About Socket
A Socket is a software object that can work as an end point which is used for establishing a bidirectional communication network link between a server and a client side program. In UNIX operating system that socket is endpoint for inter process communication (IPC) but In Java Socket classes represent the communication between client and server programs. Socket classes handle client-side communication and server Socket classes are handle server-side communication. In communication network there are mainly two types of classes first one is active and second one is passive. Active sockets are connected with the remote active sockets through an open data connection and when that connection is off then the active sockets at each end point are auto destroyed. Passive sockets are not connected because they wait for an incoming connection that will spawn a new active Socket.
Related resources for Socket