Let me give you an example.
Class Nome
Private String dado;
Public Nome(){
}
Public void metodo(String teste){
dado = teste;
}
class main( usually main program )
Nome nm = new Nome();
String dadoProTest = "foi um teste";
nm.metodo(dadoProTeste);
Now the Name class data gets "was a test".
This command above is an example, my test cannot be accessed from the main class because it is private, so to assign data to it I have q use "method()" and this value passed inside it and used to store the data, in this example was created a test string, and through that string I passed a value to the dice.
In the other I passed it under the name of "dateProTeste" but Java automatically recognizes that the "dateProTeste" is the "test" because it is in the first position ( it is not required to put the same name ) , if it has more than 1 item, ex: method(String test, String teste2)Wherever you go to call you have to follow the order.
Technically speaking it is not an overload, in the sense of creating a different method for each combination of parameters. Overloading methods is something that is done at implementation/compile time, in this case of ellipsis the number of arguments is dynamic and occurs at runtime. Java actually solves this without overloading, transforming the argument list into an array and treating it as an array within the method implementation.
– Piovezan
Yes, you are right
– Vitor Ceolin