Loading…
Loading…
Ten exam-style questions on creating strings, the left-to-right rules of + for addition and concatenation, char arithmetic, null in concatenation, += on strings and String immutability, with explanations.
Practice questions for the article Java Strings: Creation, Concatenation and Immutability.
The questions follow Java 21 rules, as on the 1Z0-830 exam. Evaluate every + from left to right and note the type of the running result. Aim for at least 8 out of 10 before moving on.
Quiz path: step 19. Take the quizzes in this order, after reading each article.
Previous quiz: Chapter 3 Review: Making Decisions (OCP 21)
Next quiz: String Methods (OCP 21)
10 questions · pass at 68%
Check your understanding; you see the answers and explanations after submitting.
Discussion
Sign in to ask a question or share what you learned.