Q1
What is the default value of a local boolean variable declared inside a method in Java?
mediumView Answer & ExplanationHide Answer & Explanation
Correct Answer: No default value (Causes a compile error if accessed before initialization)
Explanation:
Local variables in Java are not initialized with default values by the compiler. Attempting to use an uninitialized local variable causes a compile-time error.