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

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -