Search the courses, subjects, tracks, games and features, or jump straight to a page.
3 cards from this section. Quick, good the night before a test.
What is a string in Java?
Think about what kind of data letters form.
How do you declare a string in Java?
Remember, use the String keyword.
What are strings primarily used for in Java?
Think about what kinds of information you'd use strings for.
Is it true that strings in Java are mutable?
Remember the definition of immutability.
Write a Java method that checks if a given string is a palindrome.
Consider how to reverse the string and compare it to the original.
How can you count the number of occurrences of a specific character in a string?
Think about looping through the characters of the string.
5 more questions in this section. Enroll free to practise them all.
Enroll free