M Minh Tung New member Jan 17, 2022 #1 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.
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.