Hi folks i found the following questions and answer sets at javabeat...
The following were confusing for me..
Can anyone please clarify them
19. Which of the given statements are correct regarding the following JSP page code?
<jsp:useBean id="mystring" class="java.lang.String" />
<jsp:setProperty name="mystring" property="*" />
<%=mystring%>
Assume that the request for this page contains a parameter mystring=hello.
Select 1 correct option.
A.It will print ""
B.It will print "hello"
C.It will not compile
D.It will throw exception at runtime
ANS : A
---------------------------
20. Select the correct sequence of actions that a servlet container performs before servicing any request.
A.Instantiate listeners defined in the deployment descriptor
B.Initialize filters defined in the deployment descriptor
C.Initialize servlets that are set to load on startup
D.Call the contextInitialized method on the listeners implementing ServletContextListener interface
ANS: A,D,B,C
Theepan Thevathasan
SCJP 1.4, SCWCD 1.4, SCMAD 1.0 SCBCD 1.3, MCP(.Net Frm 2.0 App Dev Fdn)