Meaningless Drivel is fun!*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Static method overriding Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Static method overriding" Watch "Static method overriding" New topic

Static method overriding

karimkhan pathan
Ranch Hand

Joined: Jul 14, 2008
Posts: 86
what is the main difference of Redefining a static method and overriding a static mehod in the subclass.
we cant override the static method in the subclass..

Ankit Garg

Joined: Aug 03, 2008
Posts: 9280

Hi Karim Khan! Welcome to javaranch

Well this is a common question so you should read this part of the FAQ...

SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
karimkhan pathan
Ranch Hand

Joined: Jul 14, 2008
Posts: 86
Thanks Ankit !!!
I agree. Here's the link:
subject: Static method overriding
Similar Threads
Devaka ExamLab Diagnostic Question 3
Can static methods be inherited?
static overriding
hide vs override
why does it throws compilation error in the subclass?