Computers that run on the internet communicate with each other with the help of networking. The Java package makes use of two network protocols – the TCP (Transmission Control Protocol) and the UDP (User Datagram Protocol) to communicate over the network. When a programmer writes Java programs, it is done on the application layer.
TCP allows reliable communication from one application to another. TCP is usually used over the internet protocol that is referred to as TCP/IP. The UDP is a protocol minus the connection that lets data packets be transmitted from one application to another. A Java programmer can make use of classes in the Java package that give system independent network communication. But in order to choose which java classes your programs can use, you would need to understand how the two protocols differ from each other. At IIHT’s Java 8 course, students are not only theoretically taught about these classes but are taught to use them practically in programs during lab sessions.