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

All  the class level variables(whether arguments) have some default value whereas all local variables must be initialised (else it is compile time error).

Core Java

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