nerdexam
Oracle

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…

Using Operators and Decision Constructs

Question

Identify two valid data types for the operands of the addition (+) operator?

Options

  • Astring
  • Bboolean
  • Cnumeric
  • Darray

How the community answered

(60 responses)
  • A
    85% (51)
  • B
    8% (5)
  • C
    5% (3)
  • D
    2% (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

#addition operator#data types#string concatenation#arithmetic operators

Community Discussion

No community discussion yet for this question.

Full 1Z0-811 Practice