Every Custom Servlet extends javax.servlet.http.HttpServlet class
True
False
Web container translates JSP to Servlet for every request of the JSP
A JSP page can include another JSP page but not an HTML page
Can we write a constructor for servlet?
Yes, but always call the default constructor.
Yes, but you do not have to always call the default constructor.
No
None
What are the different scopes available?
page, request & session
page, request & application.
page, request, session & application.
request, session & application.
Which statement below is true?
ServletContext gives information about Container
ServletContext gives information about Request
ServletContext gives information about Session
Which are implicit objects in a JSP?
only request, response
only request, response & application
request, response, session & application
none of the above
Difference between GET & POST method. (Choose the right answer)
Query length is limited in POST, not limited in GET.
POST is secured whereas data is been submitted as part of URL in GET (not secured).
By using POST method, we cannot submit the form.
A servlet instance (object) is created during the execution of JSP.
which xml file is been used by Web Container as a deployment descriptor to deploy Web Applications?
ejb-jar.xml
Can be any valid xml containing Web Module name
web.xml
config.xml