Multiple choice technology programming languages

Local variables do Not get a default value

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

In languages like Java, local variables must be explicitly initialized before use. Unlike instance variables which get default values, local variables do not receive any default value and contain garbage until initialized.