• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

overloading static methods.

 
cathymala louis
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2409
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Static methods can be overloaded. They cannot be overridden.
 
wise owen
Ranch Hand
Posts: 2023
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic