aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Is these static methods really overridden ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Is these static methods really overridden ?" Watch "Is these static methods really overridden ?" New topic
Author

Is these static methods really overridden ?

Sathi Krishna
Ranch Hand

Joined: Oct 21, 2007
Posts: 51




Compiler doesn't show any error?
Is this is valid ?
Please gimme answer...
Anuj Prashar
Ranch Hand

Joined: Apr 15, 2008
Posts: 99

Static method can not be over ridden, but you can redefine them in sub-class.
You are just creating new method in sub-class.


SCJP 5,SCWCD 5, RHCT
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9303
    
  17

Read Overriding Vs Hiding...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Sathi Krishna
Ranch Hand

Joined: Oct 21, 2007
Posts: 51

Thanks...
Now its pretty Clear !!
 
 
subject: Is these static methods really overridden ?