A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
forum!
JavaRanch
»
Java Forums
»
Certification
»
Programmer Certification (SCJP/OCPJP)
Author
overloading static methods.
cathymala louis
Ranch Hand
Joined: Nov 02, 2005
Posts: 77
posted
Aug 15, 2006 10:15:00
0
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: 2341
posted
Aug 15, 2006 10:37:00
0
Static methods can be overloaded. They cannot be overridden.
wise owen
Ranch Hand
Joined: Feb 02, 2006
Posts: 2023
posted
Aug 15, 2006 13:11:00
0
Static Methods CAN NOT be Overridden
I agree. Here's the link:
http://zeroturnaround.com/jrebel
- it saves me about five hours per week
subject: overloading static methods.
Similar Threads
Static method overloading
using static method in polymorphism
How to sort an array {2s,3e,8df,4er,5d..} into {1s,2s,3e,4er,…} ?
Sub-class confusion...I thought I understood
why static methods cannot override or overload?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter