Home » JAVA Programming » Regular Expressions » Question
  1. what does public String replaceAll(string replace) do?
    1. Replace first subsequence that matches pattern with a replacement string
    2. Replace all other than first subsequence of that matches pattern with a replacement string
    3. Replace every subsequence of the input sequence that matches pattern with a replacement string
    4. Replace all characters that matches pattern with a replacement string
    5. None of these
Correct Option: C

replaceAll method replaces every subsequence of the sequence that matches pattern with a replacement string.



Your comments will be displayed only after manual approval.