Win a copy of Design for the Mind this week in the Design forum!
    Bookmark Topic Watch Topic
  • New Topic

Diiference b/w Overridng and redefining of static methods

 
sriannapoorna Balasubramanian
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Report post to moderator
hi,

can anyone explain me the difference betwwen overiding and redefining of static methods.
 
Gowher Naik
Ranch Hand
Posts: 643
  • Mark post as helpful
  • send pies
  • Report post to moderator

Overiding of static methods is not possible.But you can redefining static method of base class in child class as shown by code above.
 
Shaan Shar
Ranch Hand
Posts: 1249
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Report post to moderator
Originally posted by sriannapoorna Balasubramanian:
hi,

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


Although this seems to be a homework question... But Anyways you must look at this JAVA Ranch FAQ's OverridingVsHiding.

This would be helpful for you.
 
    Bookmark Topic Watch Topic
  • New Topic