Valid 1z0-808 Dumps shared by ExamDiscuss.com for Helping Passing 1z0-808 Exam! ExamDiscuss.com now offer the newest 1z0-808 exam dumps, the ExamDiscuss.com 1z0-808 exam questions have been updated and answers have been corrected get the newest ExamDiscuss.com 1z0-808 dumps with Test Engine here:
Given the code fragment: String[] cartoons = {"tom","jerry","micky","tom"}; int counter =0; if ("tom".equals(cartoons[0])) { counter++; } else if ("tom".equals(cartoons[1])) { counter++; } else if ("tom".equals(cartoons[2])) { counter++; } else if ("tom".equals(cartoons[3])) { counter++; } System.out.print(counter); What is the result?
Correct Answer: A
Counter++ will be executed only once because of the else if constructs.