阅读背景:

在Java中,类的静态方法有什么缺点吗?

来源:互联网 

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?Lets assume that a rule (or rule of thumb, anyw




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: