667). Which of these is a bundle of information passed between machines?
[A]Mime
[B]Cache
[C]Datagrams
[D]DatagramSocket
Show Answer
Correct Answer: Datagrams
Notes:
Answer: c
Explanation: The Datagrams are the bundle of information passed between machines.
668). Which of these class is necessary to implement datagrams?
[A]DatagramPacket
[B]DatagramSocket
[C]All of the mentioned
[D]None of the mentioned
Show Answer
Correct Answer: All of the mentioned
Notes:
Answer: c
Explanation: None.
669). Which of these method of DatagramPacket is used to find the port number?
[A]port()
[B]getPort()
[C]findPort()
[D]recievePort()
Show Answer
Correct Answer: getPort()
Notes:
Answer: b
Explanation: None.
670). Which of these method of DatagramPacket is used to obtain the byte array of data contained in a datagram?
[A]getData()
[B]getBytes()
[C]getArray()
[D]recieveBytes()
Show Answer
Correct Answer: getData()
Notes:
Answer: a
Explanation: None.
671). Which of these methods of DatagramPacket is used to find the length of byte array?
[A]getnumber()
[B]length()
[C]Length()
[D] getLength()
Show Answer
Correct Answer: getLength()
Notes:
Answer: 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.