Java - Arrays
What will be the output of the following Java code?
int[] nums = {1, 2, 3, 4};
System.out.println(nums[2]);int[] nums = {1, 2, 3, 4};
System.out.println(nums[2]);15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions