exam questions

Exam 1z0-803 All Questions

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

Exam 1z0-803 topic 1 question 149 discussion

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

Which code fragment cause a compilation error?

  • A. flat flt = 100F;
  • B. float flt = (float) 1_11.00;
  • C. float flt = 100;
  • D. double y1 = 203.22; floatflt = y1
  • E. int y2 = 100;
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
archer1903
2 years, 12 months ago
Selected Answer: D
Answer: B, D , TESTED
upvoted 1 times
...
tadatrolai
4 years, 2 months ago
Option D will compile errors, because double cannot be implicitly converted to float.
upvoted 2 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 ...