antwort C ,
public static void main(String[] args) {
int ii = 0;
int jj = 7;
for (ii = 0; ii < jj - 1; ii = ii + 2) {
System.out.println(ii + " ");
}
}
}
0
2
4
You are incorrect. The variable ii is never redeclared, you have mis-typed the question. If the reference to ii variable within the for loop had;
for (int ii = 0 .....
then option D - compilation error would be correct, however the re-declaration is not in this question.
This section is not available anymore. Please use the main Exam Page.1z0-808 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.
dya45792
Highly Voted 5 years, 7 months agoM_Jawad
Highly Voted 5 years, 7 months agovic88
Most Recent 8 months agoKolodets
2 years, 3 months agoKolodets
2 years, 3 months agoVicky_65
2 years, 4 months agoAnkit1010
2 years, 5 months agoXalaGyan
3 years, 6 months agoalexandrustefanescu
4 years, 1 month agoSSJ5
4 years, 4 months agoszrertugrul
5 years, 3 months agoStewart125
4 years, 9 months agomete23
5 years, 6 months agov323rs
5 years, 6 months ago