Are static methods in Java always resolved at compile time? -
Is there a stable way in Java always resolved on compile time?
Yes, this thread has been thoroughly tested on the forums and explained:
Many quotes:
"When the compiler aggregates the category that decides to compile at that time, which is called to call each method in a steady way (Which is a big difference for non-static method calls): In those cases, the decision on the runtime is correct. ".
" Calling static methods sometimes depend on the compile-time type on which it is called. "
Comments
Post a Comment