Multiple choice technology programming languages

The initial value of an instance variable of type String which is not explicitly initialized in the program is --.

  1. null

  2. ""

  3. NULL

  4. 0

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

Java automatically initializes instance variables (fields) to default values. For reference types like String, the default value is null, not an empty string or any other value. This behavior differs from local variables, which must be explicitly initialized before use.