Java - Arrays
Which of the following is the correct syntax to declare and initialize an integer array with values 1, 2, 3 in Java?
Which of the following is the correct syntax to declare and initialize an integer array with values 1, 2, 3 in Java?
int[] arr = {1, 2, 3};. Others have syntax errors.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions