For the client-server application over TCP, why must the server program be executed before the client program? For the client server application over UDP, why may the client program be executed before the server program?
In a TCP connection the server program must be executed before the client program because if the server is not listening, the client fails to establish connection with the server.
UDP does not require a connection from the server.