aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Can a Static Method Be Overriden? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Can a Static Method Be Overriden?" Watch "Can a Static Method Be Overriden?" New topic
Author

Can a Static Method Be Overriden?

Michael Scott
Ranch Hand

Joined: Jan 20, 2003
Posts: 57
The 'Complete Java 2 Certification Study Guide' states that 'A static method may not be overriden to be non-static.' This implies that it can only be overridden by a static method. However, according to a mock exam, the statement 'Static methods can be overridden by static methods only' is said to be false. Could someone please clarify.
Thanks very much.
John Paverd
Ranch Hand

Joined: Nov 17, 2002
Posts: 115
Your question was answered a couple of days ago


SCJP 1.4
Jasper Vader
Ranch Hand

Joined: Jan 10, 2003
Posts: 284
so after having a look at the answers that John provided the link to, it seems that not only can a static method NOT be overridden to be a non-static method, a static method can NOT be overridden AT ALL.
...a static method can only be hidden.


giddee up
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can a Static Method Be Overriden?