This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Diiference b/w Overridng and redefining of static methods Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Reply locked New topic
Author

Diiference b/w Overridng and redefining of static methods

sriannapoorna Balasubramanian
Greenhorn

Joined: Aug 24, 2006
Posts: 9
hi,

can anyone explain me the difference betwwen overiding and redefining of static methods.
Ivan Rebrov
Ranch Hand

Joined: Jul 09, 2006
Posts: 30
Check this code to see the difference:



the output is:

I'm static method of Parent
I'm instance method of Child


SCJP 5.0 - 95%<br />Preparing for SCWCD
Shaan Shar
Ranch Hand

Joined: Dec 27, 2005
Posts: 1249

Originally posted by sriannapoorna Balasubramanian:
hi,

can anyone explain me the difference betwwen overiding and redefining of static methods.


Pathatic,

It's really not good practice that you are raising the same concept in three threads.

1. Regarding Static Methods

2. Difference B/w Overriding and redifining of Static methods..

And

3. Is this present thread.....


The Best way to predict your future is to create it - Every great individual common man
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
Please continue in this thread.


Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Diiference b/w Overridng and redefining of static methods