This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes overloading static methods. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "overloading static methods." Watch "overloading static methods." New topic
Author

overloading static methods.

cathymala louis
Ranch Hand

Joined: Nov 02, 2005
Posts: 77
Hi

If static method cannot be overloaded, then how come sleep() and yield() of java.lang.Thread can have overloaded version.

Please explain me.

Thanks.
Keith Lynn
Ranch Hand

Joined: Feb 07, 2005
Posts: 2367
Static methods can be overloaded. They cannot be overridden.
wise owen
Ranch Hand

Joined: Feb 02, 2006
Posts: 2023
Static Methods CAN NOT be Overridden
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: overloading static methods.