What’s wrong with this code?

int[] = (1, 2, 3, 4, 5);
a) The array size must be specified in the square brackets.
b) The parentheses should be square brackets.
c) The square brackets should be curly braces.
d) The parentheses should be curly braces.


d) The parentheses should be curly braces.

Computer Science & Information Technology

You might also like to view...

Will System.out.println((char)4) display 4?

a. Yes b. No

Computer Science & Information Technology

What are the two principles of justice as fairness that underlie all just societies, according to Rawls?

What will be an ideal response?

Computer Science & Information Technology

What technology is used to share a smartphone's Internet connection with other devices in the area?

A) Hotspot B) Geotracking C) Tethering D) NFC

Computer Science & Information Technology

COGNITIVE ASSESSMENT What identifies data outside of a normal condition? 

A. exception criteria B. detailed report C. exception report D. summary report

Computer Science & Information Technology