Search the courses, subjects, tracks, games and features, or jump straight to a page.
4 cards from this section. Quick, good the night before a test.
What is a String in Java?
Remember how we define a sequence of characters.
How do you create a String using a literal?
Recall the example given in class.
What method would you use to find the length of a String?
It's a straightforward function that starts with 'len'.
A String in Java can be modified after its creation. True or False?
Recall what we discussed about String properties.
Create a method that accepts a String and returns the third character. Describe how this relates to the charAt() method.
Remember index starts from 0.
Write a function to concatenate two Strings with a space in between and explain how memory is affected.
Think about memory management when concatenating.
5 more questions in this section. Enroll free to practise them all.
Enroll free