Figure 20.8 Output screen of Programs 20.17 and 20.18
Explanation:The server class Thread_Server extends Thread class. In the default constructor of this
method, a server socket is created by the name ss which listens at port number 25003. The server waits for
the incoming connection using accept method. The default constructor is called in the mainmethod.
When the server executes, main method is called and in the main , default constructor is called. From the
default constructor, start method causes run method to be called. In ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.