Multiple choice technology architecture

The method used for fetching object in the request object is __________

  1. getAttribute()

  2. getParameter()

  3. getInitParameter()

  4. None

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

getParameter() retrieves request parameters sent from the client (form data, query string). getAttribute() retrieves attributes previously set within request scope by the application. getInitParameter() is for servlet configuration parameters.