Quiz: Sorting and String Checks Questions
Browse questions from Quiz: Sorting and String Checks. Each question has options and an explanation.
Questions — Page 1 of 1
- Which method sorts a primitive array?
- Collections.sort directly sorts primitive int[] arrays.
- Which Map method is useful for frequency counting with a default value?
- getOrDefault can simplify word-count logic.
- How should Java String contents usually be compared?
- For two different String objects with same characters, .equals() can return true.
- Which method checks whether a char is a digit?
- Character.isLetter(c) checks whether a char is a letter.