nerdexam
Oracle

1Z0-815 · Question #28

Which three initialization statements are correct? (Choose three.)

The correct answer is A. int x = 12_34; E. float x = 1.99; F. int[][] e = {{1,1},{2,2}}. See the full explanation below for the reasoning.

Question

Which three initialization statements are correct? (Choose three.)

Options

  • Aint x = 12_34;
  • Bshort sh = (short)`A';
  • CString contact# = "(+2) (999) (232)";
  • Dboolean true = (4 == 4);
  • Efloat x = 1.99;
  • Fint[][] e = {{1,1},{2,2}};
  • Gbyte b = 10;

How the community answered

(21 responses)
  • A
    81% (17)
  • C
    10% (2)
  • D
    5% (1)
  • G
    5% (1)

Community Discussion

No community discussion yet for this question.

Full 1Z0-815 Practice