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'};

b. double d[] = new double[30];
c. int[] i = {3, 4, 3, 2};
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...

If the Measurements check box is selected, the vertical and horizontal rulers will be displayed

Indicate whether the statement is true or false

Computer Science & Information Technology

In which of the following is the testing team provided with limited knowledge of the network systems and devices using publicly available information, while the organization's security team knows that an attack is coming?

A. blind test B. double blind test C. target test D. grey box test

Computer Science & Information Technology