my dog learned polymorphism*
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 Murach's Java Servlets and JSP this week in the Servlets 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
 
Similar Threads
Diiference b/w Overridng and redefining of static methods
Redefining and Overriding?
Meaning of redefining a method in sub class
Regarding Static methods.
static methods