June 2017
Beginner
1296 pages
69h 23m
English
In this chapter, you learned the basics of network programming in Java. You learned two different methods of sending data over a network—streams-based networking using TCP/ IP and datagrams-based networking using UDP. We showed how to build simple client/ server chat programs using both streams-based and datagram-based networking. You then saw a client/server Tic-Tac-Toe game that enables two clients to play by interacting with a multithreaded server that maintains the game’s state and logic. In the next chapter, you’ll learn basic database concepts, how to interact with data in a database using SQL and how to use JDBC to allow Java applications to manipulate database data.