Which of these methods of class String is used to check whether a given object starts with a particular string literal?

  1. startsWith()
  2. endsWith()
  3. Starts()
  4. ends()
Correct answer startsWith()

By Admin · · 41 views