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?
All the class level variables(whether arguments) have some default value whereas all local variables must be initialised (else it is compile time error).