Socket and ServerSocket.
ServerSocket is used for normal TWO-way socket communication.
Socket CLASS allows us to read and write through the sockets. getInputStream() and getOutputStream() are the two METHODSAVAILABLE in Socket class.
Socket and ServerSocket.
ServerSocket is used for normal two-way socket communication.
Socket class allows us to read and write through the sockets. getInputStream() and getOutputStream() are the two methods available in Socket class.