|
Do you need help with your Java programming?
Click here for instant help with your Java code. |
Method Names in Java
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). |
| Previous | Next | |
Tutorial Home | ||
| Do you know your Java? | |
| Take a Ten-Question-Java-Quiz! | |
Search for code examples on this site
