I am new to Java and came across the Static Block. As far as I understood, all the static statements (static initialization, static blocks etc) are run together before the code is executed.
My doubt is whether this happens during run time or compile time?
During compiling, the code is converted to machine language and at run time this machine language code is executed. So, is the order of execution changed during compiling and all the static statements put together at the start of the code so that they get executed before anything else??
Sorry, if this looks like a very simple question..