Trước khi gởi một DatagramPacket đi, ta có thể đặt thông tin địa chỉ máy nhận trên DatagramPacket này bằng phương thức ?

Trước khi gởi một DatagramPacket đi, ta có thể đặt thông tin địa chỉ máy nhận trên DatagramPacket này bằng phương thức ?

A. Public void setPort(int port)

B. Public void setLength(int len)

C.  Public void setData(byte buffer[])

D. Public void setAddress(InternetAddress dis)

Hướng dẫn

Chọn D là đáp án đúng

 

Thư viện tài liệu12 Tháng bảy, 2023 @ 2:50 chiều

Đánh giá chủ đề này
How to whitelist website on AdBlocker?

How to whitelist website on AdBlocker?

  1. 1 Click on the AdBlock Plus icon on the top right corner of your browser
  2. 2 Click on "Enabled on this site" from the AdBlock Plus option
  3. 3 Refresh the page and start browsing the site