What is the purpose of the trim() method of a String object in Java?

In Java, what is the purpose of the endsWith() method of a String object?

Which of the following is the correct way to compare two strings in a case-insensitive manner in Java?

Read More Section(Strings)

Each Section contains maximum 100 MCQs question on Strings. To get more questions visit other sections.