Question 57 / 297:  What is true after running the following code?
Choose 2
public static void main(String[] args) {

String entries[] = {"entry1","entry2"};

int count=0;

while (entries [count++]!=null){

System.out.println(count);

}

System.out.println(count);

}

<< First < Previous Next > Last >>
Explanation:

An ArrayIndexOutOfBoundsException would be thrown when count ==2

Exam Home Page
Ask
Madison Christian
Start Exam
Copy and paste the following HTML code into your website or blog.
<iframe src="https://www.jobilize.com/embed/java-certification-questions" width="600" height="600" frameborder="0" marginwidth="0" marginheight="0" scrolling="yes" style="border:1px solid #CCC; border-width:1px 1px 0; margin-bottom:5px" allowfullscreen webkitallowfullscreen mozallowfullscreen> </iframe>