aspose file tools*
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
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?