J2EE Technologies MCQs and Notes
Q. “request” is instance of which one of the following classes?
β
Correct Answer: (C)
HttpServletRequest
Q. Which one is the correct order of phases in JSP life cycle?
β
Correct Answer: (C)
Compilation, Initialization, Execution, Cleanup
Q. Default value of autoFlush attribute is?
β
Correct Answer: (A)
true
Q. Which option is true about session scope?
β
Correct Answer: (B)
Objects are accessible only from the pages which are in same session
Q. _jspService() method of HttpJspPage class should not be overridden.
β
Correct Answer: (A)
True
Q. Application is instance of which class?
β
Correct Answer: (D)
javax.servlet.ServletContext
Q. Which tag should be used to pass information from JSP to included JSP?
β
Correct Answer: (A)
Using <%jsp:page> tag
Q. Which page directive should be used in JSP to generate a PDF page?
β
Correct Answer: (A)
contentType