nerdexam
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

1Z0-803 question #208 exhibit

Options

  • A10 20 30 40
  • B0 0 30 40
  • CCompilation fails
  • DAn exception is thrown at runtime

How the community answered

(28 responses)
  • A
    4% (1)
  • B
    79% (22)
  • C
    11% (3)
  • D
    7% (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.

Full 1Z0-803 Practice