Search the courses, subjects, tracks, games and features, or jump straight to a page.
2 cards from this section. Quick, good the night before a test.
What is the output of "Java " + "is great!"?
Think about how the strings are combined.
If String name = "Alice"; and you concatenate it with "Hello, ", what do you get?
Remember to include the space!
What operator is used for string concatenation in Java?
Think about combining strings and how they are linked.
True or False: String concatenation can only combine strings of the same type.
Consider how numbers can be included in strings.
How would you concatenate an array of strings and display them as a single sentence? Provide code and output.
Consider using a loop or `join` method for this.
You have a string that contains a number: String age = "20";. How would you concatenate that with another string to create I am 20 years old without any direct adjustment?
Reflect on how strings convert automatically.
5 more questions in this section. Enroll free to practise them all.
Enroll free