blog
TCP vs UDP
TCP is a connection-oriented protocol, whereas UDP is a connectionless protocol. A key difference between TCP and UDP is speed, as TCP is comparatively slower than UDP. Overall, UDP is a much faster, simpler, and efficient protocol, however, retransmission of lost data packets is only possible with TCP.
Comparable vs Comparator
Comparable and Comparator both are interfaces and can be used to sort collection elements.
ArrayList vs Vector
ArrayList and Vector both implements List interface and maintains insertion order.
HashMap vs HashTable
HashMap and Hashtable both are used to store data in key and value form. Both are using hashing technique to store unique keys.
LinkedList vs ArrayList
ArrayList and LinkedList both implement the List interface and maintain insertion order. Both are non-synchronized classes.