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

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

17.
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.