top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is the default value of the local variables in java?

0 votes
342 views
What is the default value of the local variables in java?
posted May 18, 2018 by Frank Lee

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

The local variables are not initialized to any default values. We should not use local variables with out initialization. Even the java compiler throws error.

answer May 20, 2018 by Chahat Sharma
...