What is the difference between TCP and UDP ?

Answer Posted / raja

TCP is a connection oriented protocol, which means that
everytime a packet is sent say from host A to B, we will
get an acknowledgement. Whereas UDP on the other hand, is a
connection less protocol.
Where will it be used : TCP -> Say you have a file transfer
and you need to ensure that the file reaches intact, and
time is not a factor, in such a case we can use TCP.

For more details : http://newadmins.blogspot.com/

Is This Answer Correct ?    117 Yes 27 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is network interface name?

743


Where is the network interface card located?

738


If you do not want your program to halt while it waits for a connection, put the call to accept( ) in a separate thread?

744


What is HttpURL connection ?

828


What is socket in java?

856


What is a listener in networking?

813


What is an http server?

769


Why socketutil is used?

818


Explain the generic term internet.

801


What you know about random port?

764


What is network programming in java?

760


What is a thread pool?

837


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

759


What is the Difference between socket and servlet?

1041


What are the advantages and disadvantages of java sockets.

818