Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

static methods

 
Gunj Agarwal
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
why static methods cannot be overridden.A static method can be called in subclass using the class name..so why not it cant be overridden
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See if this helps: Overriding vs. Hiding.
 
Shiao Kung Chux
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
after read that i confuse more.
><
 
Gunj Agarwal
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanku marc...I got the point
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Shiao Kung Chux:
after read that i confuse more...

Which parts seem confusing? If you tell us where it doesn't make sense, I'm sure someone can clear things up.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic