Sponsored Link •
Legacy Java Answers Forum
This page contains an archived post to the Java Answers Forum made prior to February 25, 2002.
If you wish to participate in discussions, please visit the new
static variables in static functions
Posted by aarti on July 22, 2000 at 1:08 PM
Why I am not able to declare static variables in static functions? It is possible overcome this limitation. But does the java language syntax impose such a restriction?
static int statFunc()
static int i=8;
generates an error .
Sorry if this question is redundant
- reply SANTOSH January 02, 2001 at 2:51 PM
- RE:Query Kishori Sharan July 22, 2000 at 10:03 PM