Point is, while reflection is certainly used -- how else could a class be instantiated given its class name as a string? -- the exact mechanism is up to the container.
But, in order to create a new instance of a class using the default contructor, I couldn't imagine it doing anything other than what David posted.
but container has to fire the init() method of the servlet. Does it mean that after creating an object of servlet container will fier the init() method on it, or again it would be a reflection mechanism to do so?
Anant Jagania
Ranch Hand
Joined: Oct 20, 2004
Posts: 49
posted
0
Thanks a lot guys.. got the point..
D Rog
Ranch Hand
Joined: Feb 07, 2004
Posts: 471
posted
0
[Edit: issues with the moderators should be brought up via email or the JavaRanch forum] [ March 12, 2007: Message edited by: Bear Bibeault ]