Exam Review
- What
do the letters J2EE stand for?
- What
is the key contribution of the MVC contribution?
- List 3
key functions servlets contribute to the web tier
environment.
- What
do the letters JSP stand for?
- What
does XML add to the WWW?
- Name
two popular application servers.
- What
is the primary function of an application server?
- How do
design patterns benefit system developers?
- Where
did the idea of design patterns originate?
- Draw a
simple MVC.
- What
is the big deal about Java Beans? Take as much time and space as you need
to answer this question.
- What
are the steps to convert a java file to a java bean.
- Compile
the resulting class file and make a manifest file in a JAR file. Make a manifest.tmp which the jar utility uses to create the
MANIFEST.MF and places it in the META_WF directory of the JAR file. This META_WF
file enables java interpreter to execute a java application directly from
the JAR. This JAR file must specify a class which has the main method, and
perhaps some image files
/
- jar cfm MyJar.class
manifest.tmp jan\javastuff\beans\*.*
- What
do the letters JDBC stand for? What function does this component add to
the J2EE mix>
- What
is an API?
- What
roles to Tomcat and Apache play in the J2EE mix?
- Which
one enables us to run servlets?
- List
at least 2 of the 5 important imports needed to compile/run servlets.
- In
every one of Dietel’s examples he uses the Web’s
common response pair. What is this common response pair called?
- What
does HTTP stand for (the letters)
- What
does HTTP do?
- What
does URL stand for (the letters)
- What
does URL do?
- What
is the first method the servelet must invoke in
its life cycle?
- T/F The most popular database management
query language is sql
- T/F A table in a database consists of
rows and colums.
- T/F Tables are manipulated in Java as
result objects.
- T/F The primary record uniquely
identifies each record in a table.
- T/F SQL keyword WHERE is followed by the
selection criteria that specify the records to select in a query.
- T/F SQL keyword ORDER
BY specify the order in which records are sort3ed in a query.
- T/F Selecting data from multiple
database tables is called merging the data.
- T/F A database is an integrated
collection of data that is centrally controlled.
- T/F A master key is a field in a table
for which every entry has a unique value in another table and where the
field in the other table is the foreign key for that table.
- T/F Package java.sql
contains classes and interfaces for manipulating relational databases in
Java.
- T/F Classses HttpServlet and GenericServlet
implement the applet interface.
- T/F Class HttpServlet
defines the methods get and post in response to get and post requests from
a client.
- T/F HttpSerletResponse
method getwriter obtains a character-based
output stream that enables txt data to be sent to the client.
- T/F The form attribute action specifies
the server-side form handler, i.e., the program that handles the request.
- T/F Cookie method getName
returns a String the name of the cookie as set with setName
or the constructor.
- T/F Localhost
is the well-known host name that refers to your own computer.
- T/F HttpServletRequest
method getSession returns an HttpSession
object for the client.
- T/F Servlets
usually are used on the client side of a networking application.
- T/F Servlet
methods are executed automatically.
- T/F The two most common HTTP requests
are get and post.
- T/F The well-known port number for Web
requests is 55.
- T/F Cookies never expire.
- T/F HttpSession
expire only when the browsing session ends or when the invalaidata
method is called.
- T/F The HttpSession
method getAttribute returns the object
associated with a particular name.
- T/F CGL is the name of the programming
language that servlets have pretty much replace
as far as running on the server.
- Code
segment…. What does this block of code do
- Code
segment…..What is wrong with this code.