Identify the correct statement about servlets and applets
Correct Answer : A
Servlets run in Servlet Container which lies inside the JVM of the server. Servlets get executed in the servlet container in the web server whereas applets will be executed on the client side. Applets are embedded in a web page and runs in a browser. When a user views a HTML page that contains an applet, the code for the applet is downloaded to the user's machine. Although they are in the server, they are downloaded and used by the clients. Data can be retrieved by servlets from databases. e.g., The Web page uses information from corporate databases or other such sources. You would use this for making a Web page at an on-line store that lists current prices and number of items in stock.
Topic: What Is Servlet In Java?