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

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

554


Explain look for local ports?

580


What is network interface name?

551


Public serversocket(int port, int queuelength) throws ioexception, bindexception?

686


Where is the network interface card located?

530






What is network programming in java?

575


What are the advantages and disadvantages of sockets?

580


What is socket in java?

634


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

648


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

541


Explain the generic term internet.

598


Explain a daytime server?

646


Why socketutil is used?

616


Tell me about networking classes and interfaces.

634


What do you understand by the term network?

580