<< Chapter < Page | Chapter >> Page > |
This module is one in a collection of modules designed for teaching INEW 2338 Advanced Java (Web) at Austin Community College in Austin, TX.
This module contains review questions and answers keyed to the module titled Java4535: Introduction to Servlet Code in the Servlets sub-collection.
Once you study that module, you should be able to answer the review questions in this module.
The questions and the answers in this module are connected by hyperlinks to make it easy for you to navigate from the question to the answer and back again.
True or False?
Servlets are programming modules that run inside request/response-oriented servers, such as Java-enabled web servers, and extend them in some manner.
True or False?
You can run servlet programs on any server that supports the HTTP protocol.
True or False?
The use of servlets is restricted to HTTP servers.
True or False?
The following import directives, as a minimum, are necessary to support servlet programming:
True or False?
All servlets must implement the JavaServlet interface. You can implement it directly. However, it is more common to implement it indirectlyby extending a class that implements the interface (such as HttpJavaServlet ).
True or False?
The Servlet interface declares methods for managing the servlet and its communications with clients. You will need to override some orall of those methods when you write your servlet.
True or False?
Object references of the following types are passed to a servlet when it called by a client:
True or False?
For an HTTP servlet, the doGet method receives references to two objects of the following types as incoming parameters:
True or False?
A Java-enabled server provide a method to support each of the commands that an HTTP client can send to its server. When the server receives a command fromthe client, the corresponding method is called on the servlet.
As the servlet programmer, you override some or all of those methods to provide the desired behavior.
True or False?
The doGet method corresponds to the HTTP POST command. If you don't override the method, the default implementation reports an HTTP BAD_REQUEST error when the browser sends a POST command.
Notification Switch
Would you like to follow the 'Object-oriented programming (oop) with java' conversation and receive update notifications?