Clarification about static variables declaration

I'm getting "Illegal Start of Expression" error, When i try to declare a static variable within a static metho or nonstatic method.Could you please clarify me,Is it possible to declare a static varible within a static method or non static method ?Thanks
[282 byte] By [VikasParliyil] at [2007-11-26 8:44:29]
# 1

Hi Vikas,

First, note that this forum is devoted to Sun Java Studio Creator IDE. General Java questions can be asked on forums here: http://forum.java.sun.com/

Second, note that static variable can be defined only as member of class. It cannot be defined inside of method.

Thanks, Misha

(Creator team)

Mikhail_Matveev at 2007-7-6 22:27:10 > top of Java-index,Development Tools,Java Tools...