File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "overloading static methods." Watch "overloading static methods." New topic

overloading static methods.

cathymala louis
Ranch Hand

Joined: Nov 02, 2005
Posts: 77

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

Please explain me.

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
Consider Paul's rocket mass heater.
subject: overloading static methods.
Similar Threads
Static method overloading
why static methods cannot override or overload?
Sub-class confusion...I thought I understood
How to sort an array {2s,3e,8df,4er,5d..} into {1s,2s,3e,4er,…} ?
using static method in polymorphism