Assume:
I have a servlet with overriden init() function
and doPOST() doGET() implemented as normally.
I declare some global integer variables x,y which
are initialised to 0 (int x=0,y=0 (this is
positioned outisde the init method)
is this line called only when the servlet starts
or whenever the servlet is called(with doPOST/doGET ) ?
I have a servlet with overriden init() function
and doPOST() doGET() implemented as normally.
I declare some global integer variables x,y which
are initialised to 0 (int x=0,y=0 (this is
positioned outisde the init method)
is this line called only when the servlet starts
or whenever the servlet is called(with doPOST/doGET ) ?