4.
Which of these methods is used to compare a specific region inside a string with another specific region in another string?

RegionMatch()

Match()

RegionMatches()

RegionMatches()

12.
What is the value returned by function compareTo() if the invoking string is greater than the string compared?

Zero

Value less than zero

Value greater than zero

None of the mentioned

13.
Which of the following statement is correct?

Replace() method replaces all occurrences of one character in invoking string with another character

Replace() method replaces only first occurrences of a character in invoking string with another character

Replace() method replaces all the characters in invoking string with another character

Replace() replace() method replaces last occurrence of a character in invoking string with another character

0Shares
0
Scroll to Top