can anyone help me in understanding the compiler rule of initializing the local variables before using it. What was the logic behind implementing this rule? why can't the compiler assumes default values as it works for instance variables.
Excuse me if this is already answered question bcoz i am bit lazy to search previous posts.