Vidyalelo
Java Programming · Q49

Java Regular Expressions

Programming · Java Programming · question 49

Q49

what does public String replaceAll(string replace) do?

A.
Replace all characters that matches pattern with a replacement string
B.
Replace first subsequence that matches pattern with a replacement string
C.
Replace all other than first subsequence of that matches pattern with a replacement string
D.
Replace every subsequence of the input sequence that matches pattern with a replacement string
Answer

Answer: Option D

Solution

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