aspose file tools
The moose likes Java in General and the fly likes Private and Static Methods Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Private and Static Methods" Watch "Private and Static Methods" New topic

Private and Static Methods

Nilesh Srivastava
Ranch Hand

Joined: Aug 29, 2003
Posts: 70
Hi All..
Can any one tell me whether a static method can be overloaded.
Also can a private method can be overloaded.
Please explain in detail...
Thanks in advance
Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24189

The answer to both questions is yes, but I'm going to qualify this by reminding you that overloading means having multiple methods in the same class with the same name but different argument lists; it's different from overriding or polymorphism, in which multiple classes in an inheritance hierarchy implement the same method with the same argument list.

[Jess in Action][AskingGoodQuestions]
It is sorta covered in the JavaRanch Style Guide.
subject: Private and Static Methods