I was reading about the static methods and variables in Java and I found the below two articles on stack overflow.
Are static methods in Java always resolved at compile time? This says, static methods are resolved at compile time.
when is static variable loaded in java, runtime or compile time? time-or-compile-time
This says, static methods are loaded at compile time.
Shouldn't the compiler load the static variables/methods when it resolves them(say at compile time)? It's Confusing! Could some one please clarify?