21.
Which of the following is true about string concatenation in Java?

22.
How do you find the index of the last occurrence of a substring in a string in Java?

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

24.
What is the purpose of the toLowerCase() method of a String object in Java?

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

29.
What is the purpose of the substring() method of a String object in Java?

Read More Section(Strings)

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