wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes can i have static variable in static block? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "can i have static variable in static block?" Watch "can i have static variable in static block?" New topic
Author

can i have static variable in static block?

sathiya moorthy
Greenhorn

Joined: Nov 27, 2004
Posts: 9
static { // static block
static int k=100;
}
can any one help me please?
Jim Yingst
Wanderer
Sheriff

Joined: Jan 30, 2000
Posts: 18671
If you try to compile this, you will have your answer.


"I'm not back." - Bill Harding, Twister
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: can i have static variable in static block?
 
Similar Threads
Using static
threads
can a static block through exception?
Static Initialization Block
question about ArrayList