I have a class as follows with two overload method.
Class A { public string x(string a, string b) { return \"hello\" + a + b; } publ
It will always execute method which first match with exact no of parameters, in your case it will execute :
Optional parameter method priority is less then the function with exact no of parameters
public string x(string a, string b);