File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes cau give clear explanation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "cau give clear explanation" Watch "cau give clear explanation" New topic

cau give clear explanation

anilkumar choudary

Joined: Jun 15, 2006
Posts: 6
1)is overloading is related to one class only or it can be extended in the derived class,also
2) why we need the hash code where we use it in realtime
Ken Blair
Ranch Hand

Joined: Jul 15, 2003
Posts: 1078
1. Both. One class may have two or more methods with the same name but different signatures. When this happens it is said to be overloaded. Likewise a class may have a method with the same name and a different signature than one inherited from another class, this is still overloading.

2. See HashMap for one example.
I agree. Here's the link:
subject: cau give clear explanation
It's not a secret anymore!