Podcast
Questions and Answers
What is a Java servlet?
What is a Java servlet?
- A Java library for handling database operations.
- A Java framework for building mobile applications.
- A Java application used for client-side scripting.
- A Java class that extends the capabilities of a server. (correct)
Which method is used to handle a GET request in a Java servlet?
Which method is used to handle a GET request in a Java servlet?
- doGet() (correct)
- get()Method
- processGet()
- handleGet()
What is the role of web.xml in a Java servlet application?
What is the role of web.xml in a Java servlet application?
- Database connection settings for servlets.
- Java servlet runtime environment.
- Configuration file for servlets and filters. (correct)
- Primary servlet class file.