Local variables must be initailized before usage where as for instance variables, no such restrictions, why?
<p>I understand that local variables are allocated on stack where as member variable or instance variables are allocated on heap. But I am curious about why the JVM cannot assign a default value to a local variable on stack if its not assigned any value (while invoking that method)? Has this anything to do with the way a compiler/JVM/Processor works ?</p>
