πŸ“Š JAVA
Q. In Java, what is the purpose of the endsWith() method of a String object?
  • (A) To check if the string ends with a specified character
  • (B) To append a character to the string
  • (C) To check if the string starts with a specified character
  • (D) To check if the string contains a specified substring
πŸ’¬ Discuss
βœ… Correct Answer: (A) To check if the string ends with a specified character

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
89
Total Visits
πŸ“½οΈ
12 mo ago
Published
πŸŽ–οΈ
Pooja
Publisher
πŸ“ˆ
92%
Success Rate