Oracle
1Z0-850 · Question #3
1Z0-850 Question #3: Real Exam Question with Answer & Explanation
Sign in or unlock 1Z0-850 to reveal the answer and full explanation for question #3. The question stem and answer options stay visible for context.
Question
Given:
18. String s = " abcdcb a ";
19. int x = 2;
20. s = s.trim();
21. if (s.length() < 8) {
22. x = s.indexOf('c', 3);
23. }
24. System.out.println("x = " + x);
What is the result?
Options
- Ax = 5
- Bx = 3
- Cx = 6
- Dx = 4
- Ex = 2
Unlock 1Z0-850 to see the answer
You've previewed enough free 1Z0-850 questions. Unlock 1Z0-850 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.