interesting :
void test() {
if (true) {
return;
System.out.println("fff"):
}
}
error : unreachable statement
but this one
if (true) {
return;
}
System.out.println("end");
is ok
A is the correct answer.
Since IndexOutOfBoundsException is a Runtime exception, there will be no Compilation Error.
FileNotFoundException (Child of IOException) is a compile Time Exception, and it is already handled, so no compile time error.
upvoted 3 times
...
This section is not available anymore. Please use the main Exam Page.1z0-819 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
harjsh
3 months agoASPushkin
7 months agoBravo6633
1 year, 1 month agoStavok
1 year, 10 months agoAnkit1010
2 years, 3 months ago