Method names

A method name in Java is like any variable – an identifier. Since an identifier in Java may consist of any Unicode character, so can the method name. A method name cannot start with a number.
Different methods can have the same name as other methods in the same class if they differ in terms of arguments sent to that method. Such a method is called an ‘overloaded’ method. If a method has the exact signature as a method in the class it is derived from, the method ‘overrides’ the method in the super class (see more about object oriented programming further ahead in this tutorial).

Search for more Java info on this site here:
Custom Search

Any thoughts or questions?