Meaningless Drivel is fun!*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes static methods Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "static methods" Watch "static methods" New topic
Author

static methods

Gunj Agarwal
Greenhorn

Joined: Jan 29, 2006
Posts: 16
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

Joined: Aug 31, 2004
Posts: 11343

See if this helps: Overriding vs. Hiding.


"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
Shiao Kung Chux
Greenhorn

Joined: Jan 26, 2006
Posts: 25
after read that i confuse more.
><


while everyone is busy , i am free
Gunj Agarwal
Greenhorn

Joined: Jan 29, 2006
Posts: 16
thanku marc...I got the point
marc weber
Sheriff

Joined: Aug 31, 2004
Posts: 11343

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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: static methods