Log In Register

Units


Java Networking - Questions and Answers

 

Practice these Java Networking under Java Programming walk-in interview Questions/ examination questions with best tricks and short cuts with solution. Student (candidate) who want to crack the walk in interview, competitive exams and want to find short cuts and tricks to solve questions on Java Networking for following purpose.


– Anyone who is wishing to increase their perfect knowledge of Java Networking of Java Programming.
– Anyone who is preparing for aptitude test and increase his in depth aptitude knowledge Java Programming specifically Java Networking.
– Anyone who is preparing for interviews (competitive examinations, govt examinations and bank examinations, off-campus or on campus interviews, walk-in interview and company interviews) having questions on Java Networking under Java Programming.

– Anyone who is preparing for aptitude test or competitive exam or entrance exam.
– Anyone who is preparing for entrance examinations and other competitive examinations.
– All Experienced, Freshers and Students.

Here is list of Questions and Answers covering all key area of  Java Networking topic of Java Programming:

 

1. Which of these method of DatagramPacket is used to find the length of byte array?

Answer: Option D

Explanation:
getLength returns the length of the valid data contained in the byte array that would be returned from the getData () method. This typically is not equal to length of whole byte array.

2. How many ports of TCP/IP are reserved for specific protocols?

Answer: Option B

Explanation:

3. Which of these method of DatagramPacket is used to find the port number?

Answer: Option A

Explanation:

4. Which of these is a protocol for breaking and sending packets to an address across a network?

Answer: Option A

Explanation:
TCP/IP – Transfer control protocol/Internet Protocol is used to break data into small packets an send them to an address across a network.

5. Which of these is a standard for communicating multimedia content over email?

Answer: Option C

Explanation:
MIME is an internet standard for communicating multimedia content over email. The HTTP protocol uses and extends the notion of MIME headers to pass attribute pairs between HTTP client and server.

6. Which of these class is necessary to implement datagrams?

Answer: Option C

Explanation:

7. Which of these interface abstractes the output of messages from httpd?

Answer: Option A

Explanation:
LogMessage is a simple interface that is used to abstract the output of messages from the httpd.

8. Which of these class is used for operating on request from the client to the server?

Answer: Option D

Explanation:

9.  Which of these is a return type of getAddress method of DatagramPacket class?

Answer: Option C

Explanation:

10.  Which of these class is used to create servers that listen for either local or remote client programs?

Answer: Option B

Explanation:

11. Which of these class is used to encapsulate IP address and DNS?

Answer: Option C

Explanation:
netAddress class encapsulate both IP address and DNS, we can interact with this class by using name of an IP host.

12.  How many bits are in a single IP address?

Answer: Option C

Explanation:

13. Which of these is a bundle of information passed between machines?

Answer: Option C

Explanation:
The Datagrams are the bundle of information passed between machines.

14. Which of these is a full form of DNS?

Answer: Option D

Explanation:

15. Which of these package contains classes and interfaces for networking?

Answer: Option C

Explanation: