nerdexam
Oracle

1Z0-815 · Question #86

A method is declared to take three arguments. A program calls this method and passes only two arguments. What is the results?

The correct answer is A. Compilation fails. See the full explanation below for the reasoning.

Question

A method is declared to take three arguments. A program calls this method and passes only two arguments. What is the results?

Options

  • ACompilation fails.
  • BThe third argument is given the value null.
  • CThe third argument is given the value void.
  • DThe third argument is given the value zero.
  • EThe third argument is given the appropriate falsy value for its declared type.
  • FAn exception occurs when the method attempts to access the third argument.

How the community answered

(41 responses)
  • A
    80% (33)
  • B
    5% (2)
  • C
    10% (4)
  • D
    2% (1)
  • F
    2% (1)

Community Discussion

No community discussion yet for this question.

Full 1Z0-815 Practice