Is Java socket TCP or UDP?

Minh Tung

New member
Is Java socket TCP or UDP?
Answer
Yes, Socket and ServerSocket use TCP/IP. The package overview for the java.net package is explicit about this, but it’s easy to overlook. UDP is handled by the DatagramSocket class.
 

Tìm kiếm

Back
Top