class Example { static int sum(int a,int b = 5) { int c = a+b; return c; } static void main(String[] args) { println(sum(6)); } }
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy. Accept Learn more