Give an example of a java program that acts both as a TCP server…

Question Answered step-by-step Give an example of a java program that acts both as a TCP server… Give an example of a java program that acts both as a TCP server and TCP client. In this java program both the client and server must send a protocol request as the first request they send.  A protocol request is a single line with three parts:   HELLO? DISTTER/1.0    An identifier is a string that identifies the client/server.  The java program should use something that allows other users to identify the owner of the system. There is no response to a protocol request. An example below of an interaction between the client and server                                                                        HELLO? DISTTER/1.0 SarahServerHELLO? DISTTER/1.0 MyClient-v0.99 Computer Science Engineering & Technology Java Programming COMPUTING 227 Share QuestionEmailCopy link Comments (0)