A servlet is a Java program that runs on a server side, typically within a web container. It handles client requests and generates dynamic responses, extending the server's capabilities. Servlets are not client-side programs (like JavaScript), and the question asks for a binary choice between client and server side.