+ 13
How many times static block executed? And when its execute?
5 Respostas
+ 24
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...
+ 10
its possible to use more than one static block? #Rrestoring faith
+ 8
OK, its clear for me.. thanks
+ 5
Once when class loads (before main is called).
0
Can you elaborate your question a little more?