0
Why is it that the static block executes first in java
java
2 Respostas
+ 4
If I underatand your question well, you ask why static runs before non-static?
Everything that is static has to run when the class is loaded in to memory, since it is part of the class itself. Where everything non-static is part of the class its instance. (when you use the "new" keyword)
0
thanks !