In java, is there any disadvantage to static methods on a class?

Posted by Michael Campbell on Stack Overflow See other posts from Stack Overflow or by Michael Campbell
Published on 2010-03-18T19:17:29Z Indexed on 2010/03/18 19:21 UTC
Read the original article Hit count: 147

Filed under:
|
|

Lets assume that a rule (or rule of thumb, anyway), has been imposed in my coding environment that any method on a class that doesn't use, modify, or otherwise need any instance variables to do its work, be made static. Is there any inherent compile time, runtime, or any other disadvantage to doing this?

© Stack Overflow or respective owner

Related posts about java

Related posts about runtime