1Z0-811 · Question #30
Identify two valid data types for the operands of the addition (+) operator?
The correct answer is A. string. The source states 'A, D' as correct answers. However, the schema allows only a single letter. For Java, 'string' (A) and 'numeric' (C) are valid data types for operands of the '+' operator. 'array' (D) is not directly added with '+'. Thus, the provided answer 'A, D' seems…
Question
Options
- Astring
- Bboolean
- Cnumeric
- Darray
How the community answered
(60 responses)- A85% (51)
- B8% (5)
- C5% (3)
- D2% (1)
Explanation
The source states 'A, D' as correct answers. However, the schema allows only a single letter. For Java, 'string' (A) and 'numeric' (C) are valid data types for operands of the '+' operator. 'array' (D) is not directly added with '+'. Thus, the provided answer 'A, D' seems partially incorrect based on Java rules (should be A, C). Using 'A' as the primary answer and flagging for review due to multiple listed answers in source and potential source error.
Topics
Community Discussion
No community discussion yet for this question.