Which three initialization statements are correct?

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;

Download Printable PDF. VALID exam to help you PASS.

10 thoughts on “Which three initialization statements are correct?

    1. 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!

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.