Difficulty: Easy
Correct Answer: 1, 3, 4, 5
Explanation:
Introduction / Context:
When you create an array in Java, every element is automatically initialized to a type-specific default. This behavior differs for primitives and reference types.
Given Data / Assumptions:
Concept / Approach:
Java default element values: numeric primitives → 0/0.0, char → '\u0000', boolean → false, reference types → null (not the string ""null"").
Step-by-Step Solution:
Verification / Alternative check:
Allocate new arrays and print default values; booleans print false, references print null.
Why Other Options Are Wrong:
Any set that includes String → ""null"" or boolean → true is incorrect.
Common Pitfalls:
Misunderstanding null vs. the string ""null""; assuming booleans default to true.
Final Answer:
1, 3, 4, 5
Discussion & Comments