My Java Quiz

The ultimate place to learn Java!

Question #56: What is printed by code below?

String[] array = {"1","2","4","5"};
int i = array.length;
for(String x : array)i++;
System.out.println(i);