constructor in servlet

how servlet invokes constructor(user defined no-arg constructor) before invoking init mehod? is servlet engine follw the normal java appln flow rather than it's own life cycle while creating an instance for servlet?Thnaks inAdvance,
[254 byte] By [javaminea] at [2007-11-27 7:09:04]
# 1

the container wil call default no argument constructor by default

if u write no argument constructor in ur pgm then it is called

if u dont write it container will called

by using this constructor, container creates ServletConfig object and it passes to init method while executing lifecycle methods

q)2 . ServletEngine calls the Class.forName(new Instance()) method to create object

this is one of the way to create object

kamarajua at 2007-7-12 19:00:31 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...