What is the difference between TCP and UDP ?

Answer Posted / bhumika arora

TCP UDP
1)Transmission control 1)User Datagram
Protocol Protocol
2)Slower than UDP 2)Faster than TCP
3)TCP offers error connection 3)UDP does't offer error
and Guaranteed Delivery connection & delivery
4)connnection oriented Protocol 4)Connectionless
Protocol
5)Generally use in webpages, 5)Generally use in Audio
database information etc and vidio files.
6)Provides or sends larger 6)Provides or sends
packets smaller packets.
7)For e.g. 7)For e.g.
SMTP port no is 25 DNS port is 53 or any
FTP port no is 21 movies site or games etc
Apache tomcat port is 80

Is This Answer Correct ?    118 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What you know about random port?

570


What is socket in java?

634


Explain a time server?

596


Tell me about networking classes and interfaces.

634


How we can make simple java program for Server/Client Communication

648






Explain look for local ports?

580


Why socketutil is used?

616


What is a listener in networking?

593


What is network interface name?

551


What is network programming in java?

575


What is an http redirector?

555


What is an http server?

550


What are the advantages and disadvantages of java sockets.

616


To create a socket, you need to know the internet host to which you want to connect?

541


What is HttpURL connection ?

634