-
Which of these methods of DatagramPacket is used to find the length of byte array?
-
- Length()
- getLength()
- getnumber()
- length()
- None of these
Correct Option: B
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.