G
Garg
Hi All,
In my current project i found that a large number of methods are
public static. I am not getting why we need static methods and
variables in servlets and apis' as we all know that on each request a
new instance of servlet is been created.
I tried to find the answer but i confused some people take about
different instances of one object of servlet and some talk about
different treads of that same instance. Now i am trying to relate the
servlet and api's object, instance, treads with static variables and
method defined.
Please help in that.
Thanks
Tarun Garg
In my current project i found that a large number of methods are
public static. I am not getting why we need static methods and
variables in servlets and apis' as we all know that on each request a
new instance of servlet is been created.
I tried to find the answer but i confused some people take about
different instances of one object of servlet and some talk about
different treads of that same instance. Now i am trying to relate the
servlet and api's object, instance, treads with static variables and
method defined.
Please help in that.
Thanks
Tarun Garg