yes. its possible .
Each method has a signature, which comprises the name of the method and the types and order of the parameters in the formal
parameter list. Several method implementations may have the same name, as long as the method signatures differ. Since overloaded methods have the same name, their parameter lists must be different.
so if your method is
public static void main(String args[]){
}
public static int main(int i){
}
both methods signature is different.
No comments:
Post a Comment