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 a string in programming?
Think about it as a simple collection of letters.
How do you declare a string in Java?
Remember the format 'String variableName = "value";'
What is a string in programming?
Consider what kind of variables typically hold text data.
True or False: Strings in Java are mutable.
Think about how Java handles existing string values.
Create a string that includes the first names of three friends and concatenate it with a greeting message. Provide code in Java.
Think about how you can combine strings together using '+' or concat method.
Write a method that takes a string and returns its length. What do you think is happening behind the scenes?
Consider what property you are accessing and how functions might operate on the string.
5 more questions in this section. Enroll free to practise them all.
Enroll free