Tag: web technology

Questions Related to web technology

  1. for forward the request

  2. for include the content from the another URL

  3. both of these

  4. only for forward the request


Correct Option: C
  1. contains which jar file will executed

  2. deployment descriptor file

  3. emty file for future use of servlet

  4. none of these


Correct Option: A
  1. http session

  2. cookies

  3. URL rewriting, hiddenform fields

  4. httpsession,hiddenform fields,rewriting,cookies


Correct Option: D
  1. cookies because user can turn off it

  2. hidden form field because of its performance is moderate

  3. httpsession because no limit for session data and performance is good

  4. Url rewriting becasue its easy


Correct Option: C
  1. yes but then serlvet will not work properly ie can't provide initilization parameters

  2. not possible

  3. sometimes only

  4. none of these


Correct Option: A
  1. GenericServlet normal purpose HttpSerlvet for complex process

  2. both are same but parameters are different

  3. both of above

  4. GenericServlet is protocol independent, HttpServlet is protocol dependent


Correct Option: D
  1. sendRedirect for redirect request on server side forward process

  2. SendRedirect on client side process and forward on browser side process

  3. sendRedirect for slow and forward for fast

  4. none of these


Correct Option: B
  1. javax.servlet.servletRequest accepts relative path and javax.servlet.servletContext doesn't accepts relative path

  2. both are same

  3. javax.servlet.servletRequest for include and javax.servlet.servletContext for forward

  4. all of above


Correct Option: A