Vidyalelo
Java Programming · Q94

Strings

Programming · Java Programming · question 94

Q94

Which of the following statement is correct?

A.
reverse() method reverses all characters
Answer
B.
reverseall() method reverses all characters
C.
replace() method replaces first occurrence of a character in invoking string with another character
D.
replace() method replaces last occurrence of a character in invoking string with another character

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board