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)- A80% (33)
- B5% (2)
- C10% (4)
- D2% (1)
- F2% (1)
Community Discussion
No community discussion yet for this question.