Why does arguments in the methods are initialized with their default value in Java?

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?

Your Answer

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.

Core Java

Didn't get the answer.
Contact people of Talent-Core Java directly by clicking here