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

  1. Which method sorts a primitive array?
  2. Collections.sort directly sorts primitive int[] arrays.
  3. Which Map method is useful for frequency counting with a default value?
  4. getOrDefault can simplify word-count logic.
  5. How should Java String contents usually be compared?
  6. For two different String objects with same characters, .equals() can return true.
  7. Which method checks whether a char is a digit?
  8. Character.isLetter(c) checks whether a char is a letter.

Browse questions

Quiz overview

Open on QuizMaker