Search the courses, subjects, tracks, games and features, or jump straight to a page.
2 cards from this section. Quick, good the night before a test.
What class do you use to create a TCP socket in Java?
It's part of the java.net package.
Explain the purpose of PrintWriter in a TCP client.
Think about how you send messages.
What is the purpose of the Socket class in Java?
Think about the first step in client-server interaction.
True or False: Closing a socket is not necessary after use.
Consider resource management in programming.
Create a TCP client that connects to a server and handles exceptions if the server is not available. Provide the code.
Look into error handling in Java.
1 more question in this section. Enroll free to practise them all.
Enroll free