(1) JokeServer.java is running on port number 7817
(2) JokeClientAdmin.java is running on port number 9817
(3) Enter “J” for selecting JOKE-MODE
(4) Now JOKE-MODE is activated.
(5) JokeClient.java is running on port number 7817.
(6) Entering Client Name as “Advait”
(7) Asking for input. Enter “Y” – Capital “Y”
(8) Looking For a Joke.
(9) Prints the Joke in Random Order. 2-5-1-3-4. with Client Name.
(10) Repeating jokes in random order. 2-5-1-3-4-1…….
(11) Enter “P” for PROVERB-MODE. “P” - Capital
(12) Now entering “Advait” as a Client Name and Press “Y” for printing proverbs.
(13) Looking a Proverb for a Client.
(14) Enter “M” for Maintenance Mode.
(15) Client cannot able to see the Jokes or Proverbs. Because Server is in Maintenance Mode.
(16) While entering “shutdown”, the Server will throw “User input Error.” Message because it is
undefined for it. While Client will type “quit”, it will close down the server.

JokeOutput

  • 1.
    (1) JokeServer.java isrunning on port number 7817 (2) JokeClientAdmin.java is running on port number 9817
  • 2.
    (3) Enter “J”for selecting JOKE-MODE (4) Now JOKE-MODE is activated.
  • 3.
    (5) JokeClient.java isrunning on port number 7817. (6) Entering Client Name as “Advait”
  • 4.
    (7) Asking forinput. Enter “Y” – Capital “Y” (8) Looking For a Joke.
  • 5.
    (9) Prints theJoke in Random Order. 2-5-1-3-4. with Client Name. (10) Repeating jokes in random order. 2-5-1-3-4-1…….
  • 6.
    (11) Enter “P”for PROVERB-MODE. “P” - Capital (12) Now entering “Advait” as a Client Name and Press “Y” for printing proverbs.
  • 7.
    (13) Looking aProverb for a Client. (14) Enter “M” for Maintenance Mode.
  • 8.
    (15) Client cannotable to see the Jokes or Proverbs. Because Server is in Maintenance Mode. (16) While entering “shutdown”, the Server will throw “User input Error.” Message because it is undefined for it. While Client will type “quit”, it will close down the server.