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 will be the result of String s1 = "Good"; String s2 = "Morning"; String s3 = s1 + s2;?
Check how concatenation works.
How would you concatenate s1 and s2 with a space in between using the + operator?
Think about including an empty string space.
What is the primary operator used for string concatenation in Java?
Think about basic math operations in programming.
True or False: The concat() method can join two strings together.
Recall the definition of this method.
Create two strings using user input, concatenate them with a space in between, and return the result in a formatted output statement.
Consider how user input can be used in concatenation.
Given a string array of words, write a method that concatenates all the words into a single string separated by spaces.
Using a StringBuilder can optimize string concatenation.
5 more questions in this section. Enroll free to practise them all.
Enroll free