Top 50+ Java Networking Interview Questions and Answers - 1

Question: 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.

Question: 2

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.

Question: 3

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.

Question: 4

What is SMTP?

Simple Mail Transmission Protocol, the TCP/IP Standard for Internet mails.

SMTP exchanges mail between servers; contract this with POP, which transmits mail between a server and a client.

Question: 5

What are the seven layers of OSI model?







Physical Layer

Related Questions