exam questions

Exam 1z0-811 All Questions

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

Exam 1z0-811 topic 1 question 1 discussion

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

Which statement is true about primitive variables?

  • A. They can be compared with the == operator.
  • B. They can be compared with the equals method only.
  • C. They cannot be compared.
  • D. They can be compared with the compareTo method only.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
ketty04
6 months, 2 weeks ago
Selected Answer: A
Option A is correct
upvoted 1 times
...
krysitian
10 months, 3 weeks ago
First Question an such a mess...
upvoted 1 times
...
supercoder
1 year, 3 months ago
Selected Answer: A
Dear Admin, please fix the correct answer for this question. Equals method can never be used for primitives , only for wrappers.
upvoted 2 times
...
supercoder
1 year, 3 months ago
Selected Answer: A
== used to compare primitive variables example int someinteger = 54; return someinteger == 54;
upvoted 1 times
...
tabrezshaikh13
1 year, 6 months ago
Selected Answer: A
A is the correct answer. We cannot compare primitive variables with .equals() method but only == operator
upvoted 1 times
...
tabrezshaikh13
1 year, 6 months ago
A is the correct answer. Primitive variables DO NOT have methods declared on them so we cannot compare them with .equals() method.
upvoted 1 times
...
falchetto
1 year, 9 months ago
A is the correct answer
upvoted 2 times
...
vin_son01
1 year, 10 months ago
Option A is correct
upvoted 4 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