commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Guy Rouillier <guyr-...@burntmail.com>
Subject Re: Static versus Transient Logger Declarations
Date Sat, 11 Sep 2010 03:18:18 GMT
On 9/10/2010 9:15 AM, Martin Gainty wrote:
>
> Ray and crew
>
> other than accomodating a main driver such as public static void
> main(String args[])  is there any reason for declaring any method or
> variable as static?

Sure.  If you have methods that are self-contained, i.e., use only 
parameters or local variables, then there is little reason *not* to make 
them static.  Why incur the object overhead?

-- 
Guy Rouillier

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message