The DatagramPacket class has two constructors (see Table 25.11). Which constructor can be used as a sending

Question:

The DatagramPacket class has two constructors (see Table 25.11). Which constructor can be used as a sending packet?

Table 25.11 Some methods in DatagramPacket class public final class java.net.DatagramPacket extends java.lang.Object // Constructors public DatagramPacket (byte [] data, int length) public DatagramPacket (byte [] data, int length, InetAddress remoteAddr, int remotePort) // Instance Methods public InetAddress getAddress () public int getPort () public byte [] getData () public

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: