Difference between TCP and UDP in Java

What is the difference between TCP and UDP is a popular networking question from Java interviews? Though TCP or UDP is Java independent concept and very likely to be asked in other programming language interviews as well, many programmers not really understand them clearly. They sure have heard them because TCP and UDP are two of the most important transport protocol of internet, but when it comes to list down the difference between them, they fail to mention key differences in terms of ordering, guaranteed delivery, speed, and usage. In this article, I'll tell you the difference between TCP and UDP protocol from Java interview perspective.
Read more »