Which class provides system-independent server-side implementation?

Java MCQ: Which class provides system-independent server-side implementation?

a) Socket
b) ServerSocket
c) DatagramSocket
d) None of the above

Answer:

b) ServerSocket

Explanation:

The ServerSocket class in Java provides a system-independent mechanism for server-side socket communication. It listens for requests on a specified port and establishes a connection with clients.

Reference links:

https://www.rameshfadatare.com/learn-java-programming/
https://www.javaguides.net/p/java-tutorial-learn-java-programming.html

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top