CJCoding With Joseph
15per day
← Back to Question List

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

Topics:
Java Quiz #5

Array Length

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}