Back to Multiple Choice Quiz
Array Length
Java quiz · Question 5What is the output of this code?
Code
1public class Main {2 public static void main(String[] args) {3 int[] nums = {10, 20, 30, 40, 50};4 System.out.println(nums.length);5 }6}