0

Is it possible to have methods with defaults parameters in java?

Public void Name(String name="felix"){ System.out.println(name)}

3rd Dec 2020, 2:05 PM
Felix
Felix - avatar
1 ответ
+ 1
No, Java does not support default parameters.
3rd Dec 2020, 3:46 PM
Avinesh
Avinesh - avatar