Meaningless Drivel is fun!*
The moose likes Beginning Java and the fly likes static methods cannot be overridden. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "static methods cannot be overridden." Watch "static methods cannot be overridden." New topic
Author

static methods cannot be overridden.

Phillipe Rodrigues
Ranch Hand

Joined: Oct 30, 2007
Posts: 165
Is it that static methods cannot be overridden?

if so please let me know where am i doing wrong with reference to below code:




Output:
---------- Run ----------
25
Normal Termination
Output completed (0 sec consumed).


Thanks,
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19653
    
  18

Check Overriding vs Hiding.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: static methods cannot be overridden.
 
Similar Threads
Overloading static and private methods
Overridding private methods
How to use Assertions in Java
Overriding and redefining
Polymorphism example - where would we ever use this construct?