This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Static method overriding" Watch "Static method overriding" New topic
Author

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..


karim
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9291
    
  17

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 !!!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Static method overriding
 
Similar Threads
Devaka ExamLab Diagnostic Question 3
hide vs override
Can static methods be inherited?
static overriding
why does it throws compilation error in the subclass?