File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes static methods Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "static methods" Watch "static methods" New topic

static methods

saravanan gnanasundaram

Joined: May 11, 2011
Posts: 1
what is the advantage of redefining a static method....any one give example
Greg Brannon

Joined: Oct 24, 2010
Posts: 563
What do you mean "redefining a static method?" Redefining it as what?

Always learning Java, currently using Eclipse on Fedora.
Linux user#: 501795
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 45358
Welcome to the Ranch

You can't override a static method at all. You can only hide it, which is bad practice. We have an FAQ which you will probably find helpful/
It is sorta covered in the JavaRanch Style Guide.
subject: static methods
jQuery in Action, 3rd edition