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

  • (A) startsWith()
  • (B) endsWith()
  • (C) Starts()
  • (D) ends()
πŸ’¬ Discuss
βœ… Correct Answer: (A) startsWith()

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
115
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Bhagwan Das
Publisher
πŸ“ˆ
87%
Success Rate