This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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: 24183

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]
I agree. Here's the link:
subject: Private and Static Methods
Similar Threads
Static method overloading
Question about subclass methods with the same name of the superclass methods
Q from javacross simulation
Marcus Green test1 Q16
Q from Marcus Exam 1