Submitted Questions

  • Why init is used and not constructor for servlets initialization?

    sunil

    • Aug 10th, 2006

    If u used a constuctor then no probs it's working fine but u cant used servletconfig and u cant passed argument constructor b'coz only first time yr constructor has called and for other request direct...

    Ramu Kondapalli

    • Jul 19th, 2006

    Servlet life cycle is mannaged by the servlet container not the JVM.According to servlet specification the servlet container calls init() method of servlet, not the servlet constractors. At this point...