Java Socket is a class that provides a mechanism for communication between two machines over a network using the TCP/IP protocol. Java Socket allows developers to create client-server applications where data can be sent and received through a network connection. Introduced in Java 1995 with Java 1.0, Socket is an essential part of Java's java.net package and is widely used in network programming, such as in web servers, chat applications, and distributed systems.
https://docs.oracle.com/javase/8/docs/api/java/net/Socket.html