Advantages and Disadvantages of Java Sockets Last Updated : 29 Apr, 2022 Comments Improve Suggest changes Like Article Like Report A socket is an End-Point of 2 sided or two-way communication link between two PCs running on the network. For Example: If there are two people in different places who want to communicate with each other and each of them has a mobile phone. So one of them has to start the communication by dialing the person and then the other person receives the call then the connection will be established between these two. Once, the connection is established then they can start communicating with each other by sending and accepting messages so that is how a simple mobile phone end-to-end communication works, here the mobile phones act as a socket and endpoint of communication. How communication is done? To communicate both devices need to have sockets at their end. Since we're doing java programming these sockets are called java objects or socket objects. So to establish a connection and to send and receive messages and data both ends need to have a socket at the sender's end and at the receiver's end. Below is the illustration of the network How sockets are used to send and receive data? We are going to use input and output streams socket input streams: to read the data.socket output stream: to write the data. Let's say we want to send data from socket 1 to socket 2 in that case we have to use socket 1 output stream and to read data from B to A. we'll use the socket as an input stream. Now Let's discuss the Advantages and Disadvantages of java sockets. Advantages and Disadvantages of Java SocketsS.NO Advantages Disadvantages 1 Flexible & powerfulIncreased complexity cost and high-Security restrictions.2 Very sufficientSocket-based communications allow only to send packets of raw data between applications.3 Updated Information can be used to send only between devicesCommunication can be established with the machine requested not with another machine.4 Low network traffic if efficient useBoth ends should have the ability to intercept the data. Comment More infoAdvertise with us Next Article Advantages and Disadvantages of Java Sockets shadit13064 Follow Improve Article Tags : Java Computer Networks Java-Networking Practice Tags : Java Similar Reads Advantages and Disadvantages of Java Java has been reliably holding the absolute best situation of the TIOBE record among any remaining programming dialects. In spite of the fact that numerous new dialects are found, the VIP of Java never goes down. Java has been administered over any remaining dialects for every 20 years the majority 5 min read Advantages and Disadvantages of WLAN Nowadays, more and more networks are operating without cables, within the wireless mode. Wireless LANs use high-frequency radio signals, infrared beams, or lasers to speak between the workstations, file servers, or hubs. Wireless LAN is formed by connecting different devices through wireless communi 4 min read Advantages and disadvantages of Ethernet Ethernet is Local Area Network (LAN) technology. This system consists of rules to connect multiple systems on the LAN network connection. Apart from LAN, it is also used in Metropolitan Area Network (MAN) and Wide Area Network (WAN) network. A system for connecting a number of computer systems to fo 3 min read Advantages and Disadvantages of Bus Topology In computer network there are various topologies available. A Bus Topology is one of them. All of the devices in a bus topology network are linked together by a single cable, which is referred to as a "bus" and the cable is known as backbone cable. All of the network's devices can simultaneously rec 6 min read Advantages and Disadvantages of Telecommunication âCommunications technology is a crucial part of both today's and tomorrowâs society.â Telecommunication also referred to as e-commuting or e-work, is that the term used when individuals cash in on the various technological advances to figure from anywhere they desire, giving themselves. Furthermore, 2 min read Like