Which three initialization statements are correct? (Choose three.)
A. int x = 12_34;
B. short sh = (short)’A’;
C. String contact# = "(+2) (999) (232)";
D. boolean true = (4 == 4);
E. float x = 1.99;
F. int[][] e = {{1,1},{2,2}};
G. byte b = 10;
char c = b;
A,F,G
A,B,F
A,F,G
To all who said G, take a closer look, G is:
byte b = 10;
char c = b;
while the first instantiation works the second line fails!
A, B, F, G
and B
A, F, G
A, B, F and G
A, B, F and G
A, B, F