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
Programmer Certification (SCJP/OCPJP)
Joined: Oct 03, 2007
Oct 20, 2007 04:18:00
does a static field created in a method keeps the same value between calls
SCJP1.4 , gearing up for SCWCD 5
Joined: Oct 18, 2007
Oct 20, 2007 04:40:00
You can't use static for a filed in a method!
SCJP5 - SCWCD5 - SCBCD5
Joined: May 14, 2001
Oct 20, 2007 05:07:00
Ah gotcha... Thanks al nik... sorry for the error from this old multilinguist.
Al is right.. I found a nice discussion on this topic at the below link
I agree. Here's the link:
subject: STATIC FUNCTIONS
[n] Initialization of object member before object creation? - or multiple threads?
java STATIC fields.
a bunch of questions
Unable to utilize method on Character?
thread safe instance variable
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015