Is Prepared statement a precomplied SQL statement?
True
False
Which three are true about the HttpServletRequestWrapper class?
The HttpServletRequestWrapper is an example of the Decorator pattern.
The HttpServletRequestWrapper can be used to extend the functionality of a servlet request.
A subclass of HttpServletRequestWrapper CANNOT modify the behavior of the getReader method.
An HttpServletRequestWrapper may be used only by a class implementing the javax.servlet.Filter interface.
An HttpServletRequestWrapper CANNOT be used on the request passed to the RequestDispatcher.include
An HttpServletRequestWrapper may modify the header of a request within an object implementing the
Which arithmetic operations can result in the throwing of anArithmeticException?
+
*
-
/
What does getSession(false) will do?
Create new session if the session does not already exist
Returns null if session does not already exist
Returns false
Destroy the session
Servlet A receives a request that it forwards to servlet B within another web application in the same web container. Servlet A needs to share data with servlet B and that data must not be visible to other servlets in A's web application. In which object can the data that A shares with B be stored?
HttpSession
ServletConfig
ServletContext
HttpServletRequest
HttpServletResponse
What is the difference between an object and an instance?
No difference, both are the same
An Object maynot have a class definition, but an instance must have a class definition
An Object must have a class definition, but an instance may not have a class definition
Object and Instance should have different class definitions. It can not be the same.
Is a skeleton created by RMI?
Jdk1.4 also contain the tool interface that is JVMTI which is a profiling tool in jdk1.5
If a method is declared as protected, where may the method be accessed?
Interfaces of the same package and other packages
Classes of the same package
Classes of the same package and other packages
Interfaces of the same package
A dead thread can be restarted by calling the start() method again on that object