Java Networking Question and Answers

1. What is a socket?
 
  • Sockets provide the communication mechanism between two computers using TCP.
  • A client program creates a socket on its end of the communication and attempts to connect that socket to a server.
 
Anwar danish ,says November 29, 2018
A client program creates a socket on its end of the communication and attempts to connect that socket to a server.
Your Name Your Email-ID
Your Answer
2. Define network programming?
  It refers to writing programs that executes across multiple devices (computers), in which the devices are all connected to each other using a network.
 
Your Name Your Email-ID
Your Answer
3. What is DHCP?
  Dynamic Host Configuration Protocol, a piece of the TCP/IP protocol suite that handles the automatic assignment of IP addresses to clients.
 
Your Name Your Email-ID
Your Answer
4. What is the difference between TCP and UDP?
 
  • These two protocols differ in the way they carry out the action of communicating.
  • A TCP protocol establishes a two way connection between a pair of computers, while the UDP protocol is a one way message sender.
  • The common analogy is that TCP is like making a phone call and carrying on a two way communication while UDP is like mailing a letter.
 
Your Name Your Email-ID
Your Answer
1234 Page 1 of 4