CJCoding With Joseph
15free / daySign inCreate account
Back to Multiple Choice Quiz

Select topics to narrow your question pool, then enable Random to jump to a random question matching your filters.

Topics

Array Length

Java quiz · Question 5
easyArrays

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}