Question 76 / 90:  Given the following code, which statements are true?

(Choose all that apply.)


Choose 2
Short s1 = (Short) 300;

short s2 = (Short) 300;

short s3 = (short) 300;

short s4 = 300;

<< First < Previous Next > Last >>
Explanation:

C and D.

C is correct as an explicit short is applied.

D is correct as an implicit short is applied.

A and B are incorrect because you cannot use wrapper classes for explicit casts in this manner.

Exam Home Page
https://www.jobilize.com/quiz-my-oca-mock-exam-by-mike-wolf

My OCA Mock

Author:

Access: Public Instant Grading

Ask
Madison Christian
Start Exam
Copy and paste the following HTML code into your website or blog.
<iframe src="https://www.jobilize.com/embed/quiz-my-oca-mock-exam-by-mike-wolf" width="600" height="600" frameborder="0" marginwidth="0" marginheight="0" scrolling="yes" style="border:1px solid #CCC; border-width:1px 1px 0; margin-bottom:5px" allowfullscreen webkitallowfullscreen mozallowfullscreen> </iframe>