← Back to Question List
Java Quiz #5
Array Length
What 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}