This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
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


Win a copy of Java 8 in Action this week in the Java 8 forum!
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: 9280
    
  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 !!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is these static methods really overridden ?
 
Similar Threads
initialiser block/constructor
Question #6 from Doug's book
question from Dan's exam - ClassCastException
static methods can't be overridden?
super class implemnts the sub class method ??