This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
These are not taken from any certified exams, but belonging to a assessment test for registration purpose. Can you guys pls let me know what are the answers or them? (I find the questions to be simple yet not precise per the Servlet APIs) QUESTIONS: - 1. Which corresponding method in the HttpServlet class do you use to retrieve the value of a text field on an HTML form?
1. A Because it said HttpServlet class. If it said ServletRequest, I will pick B. getParameter() 2. A, B When the deployment descriptor file have specified <load-on-startup>, it will load when web server start, otherwise it will load when the first request comming in. 3. A
Methods for retrieving form parameters are defined in the ServletRequest interface(SR interface is implemented by the container).
<i>Dare to dream - everything that exists today,was once a figment of someone's imagination, nobody says tomorrow can't be a figment of your today.</i>
Joined: Apr 05, 2003
A, tricky ? (There is no getParameter(String str) defined or inherited in HttpServlet class ,this method is defined in ServletRequest interface and is accessed through the HttpServletRequest object[interface HttpServletRequest extends interface ServletRequest )]NOTE:Both interfaces are implemented by the Container B,C (<load-on-startup> in web.xml) A, Methods for retrieving form parameters are defined in the ServletRequest interface(SR interface is implemented by the container). [ August 05, 2003: Message edited by: Amer Khan ]