What is the output of the following Java code? int[] list = {0, 5, 10, 15, 20}; for (int j = 0; j < 5; j++) System.out.print(list[j] + " ");

What is the output of the following Java code? int[] list = {0, 5, 10, 15, 20}; for (int j = 0; j < 5; j++) System.out.print(list[j] + " "); System.out.println(); A) 0 1 2 3 4 C) 0, 5, 10, 15, 20 B) 0 5 10 15 20 D) 0 5 10 15

Leave a Reply

Your email address will not be published.