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


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Overriding doubt ?" Watch "Overriding doubt ?" New topic
Author

Overriding doubt ?

harsha puttaswamy
Greenhorn

Joined: Mar 05, 2005
Posts: 24
Can static methods be overridden in the deriving class ?

Thanks.
Balazs Borbely
Ranch Hand

Joined: Oct 11, 2004
Posts: 33
Static methotds cannot be overridden.

A subclass cannot override methods that are declared static in the superclass. In other words, a subclass cannot override a class method. A subclass can hide a static method in the superclass by declaring a static method in the subclass with the same signature as the static method in the superclass.


'Make everything as simple as possible, but not simpler.' --Albert Einstein
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Overriding doubt ?