How many times static block executed? And when its execute?
with respect to Java static block executes when you run a program after initializing the static variables, it executes only once! if you want to repeat it, declare it as a static method.. and of course! call it...
its possible to use more than one static block? #Rrestoring faith
OK, its clear for me.. thanks
Once when class loads (before main is called).
Can you elaborate your question a little more?