Oracle
1Z0-815 · Question #49
Given the code fragment: Which three code fragments can be independently inserted at line nl to enable the code to print one?
The correct answer is A. Byte x = 1; B. short x = 1; F. Integer x = new Integer ("1"). See the full explanation below for the reasoning.
Question
Given the code fragment:
Which three code fragments can be independently inserted at line nl to enable the code to print one?
Exhibit
Options
- AByte x = 1;
- Bshort x = 1;
- CString x = "1";
- DLong x = 1;
- EDouble x = 1;
- FInteger x = new Integer ("1");
How the community answered
(17 responses)- A71% (12)
- C6% (1)
- D18% (3)
- E6% (1)
Community Discussion
No community discussion yet for this question.
