Tag: web technology

Questions Related to web technology

Can we override init(),service(),destroy()

  1. no

  2. yes but except service()

  3. yes except init()

  4. yes except destroy()


Correct Option: B

what is class available for http process in servlet

  1. GenericServlet

  2. service()

  3. doTrace()

  4. HttpServlet class its a sub class of GenericServlet class


Correct Option: D
  1. no difference

  2. servlet runs slowly than CGI

  3. CGI is a complex process , servlet is easier ie lieght weight component

  4. none of these


Correct Option: C
  1. service() only

  2. destroy()

  3. doPost,doGet

  4. doPost,doGet,doTrace(),doOption(),doDelete()


Correct Option: C

Difference between doPost() and doGet()

  1. data size is limited(upto 256 datas) in doGet() , doPost has no limit for datas

  2. doPost() is secure than doGet

  3. both of above

  4. none of these


Correct Option: C
  1. both are same

  2. servletConfig helps for share information to all serlvet classes

  3. servletCofig for particular servlet configuration and servletContext toshare information to all serlvet classes

  4. none of these


Correct Option: B