Exam Review

 

  1. What do the letters J2EE stand for?

 

  1. What is the key contribution of the MVC contribution?

 

  1. List 3 key functions servlets contribute to the web tier environment.

 

  1. What do the letters JSP stand for?

 

  1. What does XML add to the WWW?

 

  1. Name two popular application servers.

 

  1. What is the primary function of an application server?

 

  1. How do design patterns benefit system developers?

 

  1. Where did the idea of design patterns originate?

 

  1. Draw a simple MVC.

 

  1. What is the big deal about Java Beans? Take as much time and space as you need to answer this question.

 

 

 

 

 

 

 

 

 

 

 

  1. What are the steps to convert a java file to a java bean.

 

/

 

 

 

 

  1. What do the letters JDBC stand for? What function does this component add to the J2EE mix>

 

 

 

 

  1. What is an API?

 

 

 

 

 

  1. What roles to Tomcat and Apache play in the J2EE mix?

 

 

 

 

  1. Which one enables us to run servlets?

 

 

 

 

 

  1. List at least 2 of the 5 important imports needed to compile/run servlets.

 

 

 

 

  1. In every one of Dietel’s examples he uses the Web’s common response pair. What is this common response pair called?

 

 

 

 

  1. What does HTTP stand for (the letters)

 

 

 

 

 

  1. What does HTTP do?

 

 

 

 

  1. What does URL stand for (the letters)

 

 

 

 

 

  1. What does URL do?

 

 

 

 

 

  1. What is the first method the servelet must invoke in its life cycle?

 

 

 

 

  1. T/F       The most popular database management query language is sql

 

  1. T/F       A table in a database consists of rows and colums.

 

  1. T/F       Tables are manipulated in Java as result objects.

 

  1. T/F       The primary record uniquely identifies each record in a table.

 

  1. T/F       SQL keyword WHERE is followed by the selection criteria that specify the records to select in a query.

 

  1. T/F       SQL keyword ORDER BY specify the order in which records are sort3ed in a query.

 

  1. T/F       Selecting data from multiple database tables is called merging the data.

 

  1. T/F       A database is an integrated collection of data that is centrally controlled.

 

  1. 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.

 

  1. T/F       Package java.sql contains classes and interfaces for manipulating relational databases in Java.

 

  1. T/F       Classses HttpServlet and GenericServlet implement the applet interface.

 

  1. T/F       Class HttpServlet defines the methods get and post in response to get and post requests from a client.

 

  1. T/F       HttpSerletResponse method getwriter obtains a character-based output stream that enables txt data to be sent to the client.

 

  1. T/F       The form attribute action specifies the server-side form handler, i.e., the program that handles the request.

 

  1. T/F       Cookie method getName returns a String the name of the cookie as set with setName or the constructor.

 

  1. T/F       Localhost is the well-known host name that refers to your own computer.

 

  1. T/F       HttpServletRequest method getSession returns an HttpSession object for the client.

 

  1. T/F       Servlets usually are used on the client side of a networking application.

 

  1. T/F       Servlet methods are executed automatically.

 

  1. T/F       The two most common HTTP requests are get and post.

 

  1. T/F       The well-known port number for Web requests is 55.

 

  1. T/F       Cookies never expire.

 

  1. T/F       HttpSession expire only when the browsing session ends  or when the invalaidata method is called.

 

  1. T/F       The HttpSession method getAttribute returns the object associated with a particular name.

 

  1. T/F       CGL is the name of the programming language that servlets have pretty much replace as far as running on the server.   

 

  1. Code segment…. What does this block of code do

 

 

  1. Code segment…..What is wrong with this code.