If it's in the same class with the equal number of parameters with the same types and order, then it is not possible for example:
int methoda(String a,int b) {
return b;
}
String methoda(String b,int c) {
return b;
}
if the number of parameters and their types is same but order is different then it is possible since it results in method overloading. It means if the method signature is same which includes method name with number of parameters and their types and the order they are defined.