How can you initialize an array of two characters to 'a' and 'b'?

a. char[] charArray = new char[2]; charArray = {'a', 'b'};
b. char[2] charArray = {'a', 'b'};
c. char[] charArray = {'a', 'b'};
d. char[] charArray = new char[]{'a', 'b'};

c. char[] charArray = {'a', 'b'};
d. char[] charArray = new char[]{'a', 'b'};

Computer Science & Information Technology

You might also like to view...

Moves the text to the right of the insertion point to the top of the next column

A) Page break B) Continuous break C) Column break

Computer Science & Information Technology

Match each of the bars in the histogram to the color it represents. (Draw arrows linking each bar and the color in the grayscale image in Figure 3.42.)

Computer Science & Information Technology