Question: How many lines does the following code output? A. Zero. B. Six. C. Seven. D. The code does not compile. E. The code compiles but
How many lines does the following code output?
![var days = new String[] { "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday",](https://dsd5zvtm8ll6.cloudfront.net/images/question_images/1707/2/9/1/19765c3323d284051707291197216.jpg)
A. Zero.
B. Six.
C. Seven.
D. The code does not compile.
E. The code compiles but throws an exception at runtime.
var days = new String[] { "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" }; for (int i = 1; i < days.length; i++) System.out.println(days [i]);
Step by Step Solution
3.41 Rating (167 Votes )
There are 3 Steps involved in it
In this Java code snippet the days array contains seven elements which represe... View full answer
Get step-by-step solutions from verified subject matter experts
