exam questions

Exam 1z0-811 All Questions

View all questions & answers for the 1z0-811 exam

Exam 1z0-811 topic 1 question 30 discussion

Actual exam question from Oracle's 1z0-811
Question #: 30
Topic #: 1
[All 1z0-811 Questions]

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

  • A. string
  • B. boolean
  • C. numeric
  • D. array
Show Suggested Answer Hide Answer
Suggested Answer: AC 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
nmkkrtcg
1 month, 2 weeks ago
Selected Answer: AC
'+' operator in java can be used to add numbers and concatenate strings. Following rules should be considered. Only numbers as operands then result will be a number. Only strings as operands then result will be a concatenated string. so logically the answer is A (string) and C (numeric) because it says valid data type, array is not a data type right?
upvoted 1 times
...
tabrezshaikh13
5 months, 2 weeks ago
Selected Answer: AC
A and C are the correct answer.
upvoted 1 times
...
CuriosityYen
7 months, 2 weeks ago
Selected Answer: AC
In Java, the addition operator + is used for adding numerical values or concatenating strings.
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago