GeeCON Prague 2014*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes STATIC FUNCTIONS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "STATIC FUNCTIONS" Watch "STATIC FUNCTIONS" New topic
Author

STATIC FUNCTIONS

dipayan chatterjee
Ranch Hand

Joined: Oct 03, 2007
Posts: 47
hello all
does a static field created in a method keeps the same value between calls


SCJP1.4 , gearing up for SCWCD 5
al nik
Ranch Hand

Joined: Oct 18, 2007
Posts: 60
You can't use static for a filed in a method!


SCJP5 - SCWCD5 - SCBCD5
Jithu Joijoide
Greenhorn

Joined: May 14, 2001
Posts: 17
Ah gotcha... Thanks al nik... sorry for the error from this old multilinguist.

Dipayn ,
Al is right.. I found a nice discussion on this topic at the below link

http://www.velocityreviews.com/forums/t135242-static-local-variables-not-allowed-in-java-.html

Rgs
Jithu
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: STATIC FUNCTIONS