000-150  Exam

Exam # of questions Description  Update
000-150 44 000-150... 02/15/2011
[Practice Test]    [Download Study Guide(PDF)]   [Update Exam]

000-150 - Exam Information
  • Description: J2EE v1.4 Web Developer
  • Passing Score: 75%
  • Practice Test - Number of questions: 44 questions
  • Simulation Test - Number of questions: 44 questions
  • Simulation Test Duration: 90 minutes
  • Has explanations: No

Question of the day

Which method would be used to call a registered servlet within the same Web application and with the following attributes? Hostname = www.example.com Web Application Context Root = testApp Servlet URI = TestServlet

Answer(s)

  1. getServletConfig().getServletContext().getRequestDispatcher("http://www.example.com/testApp/TestServlet").forward(req,res);
  2. getServletConfig().getServletContext().getRequestDispatcher("/testApp/TestServlet").forward(req,res);
  3. getServletConfig().getServletContext().getRequestDispatcher("/TestServlet").forward(req,res);
  4. getServletConfig().getServletContext().getRequestDispatcher("TestServlet").forward(req,res);
Correct Answer

getServletConfig().getServletContext().getRequestDispatcher("/TestServlet").forward(req,res);