-
what does public String replaceAll(string replace) do?
-
- Replace first subsequence that matches pattern with a replacement string
- Replace all other than first subsequence of that matches pattern with a replacement string
- Replace every subsequence of the input sequence that matches pattern with a replacement string
- Replace all characters that matches pattern with a replacement string
- None of these
Correct Option: C
replaceAll method replaces every subsequence of the sequence that matches pattern with a replacement string.