Oracle
1Z0-803 · Question #208
Given: What is the result?
The correct answer is B. 0 0 30 40. Creating a new object (also an array) does inizialize it as default.
Creating and Using Arrays
Question
Given:
What is the result?
Exhibit
Options
- A10 20 30 40
- B0 0 30 40
- CCompilation fails
- DAn exception is thrown at runtime
How the community answered
(28 responses)- A4% (1)
- B79% (22)
- C11% (3)
- D7% (2)
Explanation
Creating a new object (also an array) does inizialize it as default.
Topics
#arrays#array indexing#variable assignment
Community Discussion
No community discussion yet for this question.
