The correct answer is the letter C, String is immutable, that is, it is necessary to create a new variable, in the line "myStr.trim();" as no variables are assigned, the line is almost forgotten because it compiles. As java indexes from 0 it prints 5 which is the C answer.
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.
iSnover
Highly Voted 1 year agoVicky_65
Most Recent 6 months, 3 weeks agoakbiyik
11 months agoalex_au
1 year agoshivkumarx
1 year, 1 month agoshivkumarx
1 year, 1 month agoiSnover
1 year ago