Static methods and their overriding

Posted by abson on Stack Overflow See other posts from Stack Overflow or by abson
Published on 2010-03-26T06:25:33Z Indexed on 2010/03/26 6:33 UTC
Read the original article Hit count: 575

Filed under:

Java doesn't allow overriding of static methods but, class stat13 { static void show() { System.out.println("Static in base"); } public static void main(String[] ar) { new next().show(); } }

class next extends stat13 { static void show() { System.out.println("Static in derived"); } } is not overriding done here?

© Stack Overflow or respective owner

Related posts about java