final and private static

Posted by xdevel2000 on Stack Overflow See other posts from Stack Overflow or by xdevel2000
Published on 2010-06-16T08:34:34Z Indexed on 2010/06/16 8:42 UTC
Read the original article Hit count: 246

Filed under:
|
|
|

I read that doing:

public final void foo() {}

is equals to:

private static void foo() {}

both meaning that the method is not overridable!

But I don't see the equivalence if a method is private it's automatically not accessible...

© Stack Overflow or respective owner

Related posts about java

Related posts about static