File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Java SE 8 for the Really Impatient
this week in the
static blocks in servlels
Joined: May 27, 2002
Apr 08, 2003 23:58:00
Sometime back, somewhere, I read that, we are not supposed to use static blocks in servvlets. Is it because, teh static blocks gets executed during initiaon.
Can someone explain the reason with example.
Author and all-around good cowpoke
Joined: Mar 22, 2000
Apr 09, 2003 07:29:00
I know of no reason to avoid static initialization blocks in
and I have used them occasionally.
I agree. Here's the link:
subject: static blocks in servlels
Please help with these questions
Where can I call private static method?
this Refrence Problem
order of execution in java
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014