In Java, local variables are not initialized by the compiler. Then, if I try to print the value of an argument without passing any value in it, then it prints their default value. Why is that?
If you try to call a parameterized method without any parameters it will give you a compilation error. You compulsorily have to provide the required parameters to the method.