Which of the following statements is valid?

a. int i = new int(30);
b. double d[] = new double[30];
c. int[] i = {3, 4, 3, 2};
d. char[] c = new char();
e. char[] c = new char[4]{'a', 'b', 'c', 'd'};

bc e would be corrected if it is char[] c = new char[]{'a', 'b', 'c', 'd'};

Computer Science & Information Technology

You might also like to view...

One of the key features of LinkedIn, and the most important benefit to job seekers, is the network of connections you establish

Indicate whether the statement is true or false

Computer Science & Information Technology

Pressing the ________ key(s) promotes an item in an outline

Fill in the blank(s) with correct word

Computer Science & Information Technology