Search the courses, subjects, tracks, games and features, or jump straight to a page.
5 cards from this section. Quick, good the night before a test.
What is a string in Java?
Think about how we use strings in everyday coding.
How do you find the length of a string?
What method do we use for measuring size?
What does String str = "Hello, World!" represent?
Remember the definition of a string.
True or False: Strings in Java can be changed after they are created.
Think about the properties of objects in Java.
Create a program that takes a string and outputs its length, the first character, and a reversed version of the string.
How do you extract individual characters for the reversed string?
Write a method that takes a string and a character as inputs and counts how many times the character appears in the string.
Consider how you can access each character efficiently.
6 more questions in this section. Enroll free to practise them all.
Enroll free