What is the default value of the local variables?

Q

What is the default value of the local variables?

✍: Guest

A

The local variables are not initialized to any default value, neither primitives nor object references. If you try to use these variables without initializing them explicitly, the java compiler will not compile the code. It will complain abt the local varaible not being initilized..

2013-07-01, 2154👍, 0💬