Rohith
Creator of whiletrue.live.
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.
Posted September 8, 2022 by Rohith and Anusha ‐ 2 min read
Comparable vs Comparator
Comparable and Comparator both are interfaces and can be used to sort collection elements.
Posted September 8, 2022 by Rohith and Anusha ‐ 1 min read
ArrayList vs Vector
ArrayList and Vector both implements List interface and maintains insertion order.
Posted September 8, 2022 by Rohith and Anusha ‐ 1 min read
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.
Posted September 8, 2022 by Rohith and Anusha ‐ 1 min read
LinkedList vs ArrayList
ArrayList and LinkedList both implement the List interface and maintain insertion order. Both are non-synchronized classes.
Posted September 8, 2022 by Rohith and Anusha ‐ 1 min read