Home / CSE MCQs / Java Regex :: Discussion

Discussion :: Java Regex

  1. Which of the following statements about the regex API are true?
  2. A.
    Instances of the Pattern class are used to match character sequences against a given pattern
    B.
    The package java.util.regex includes an exception called PatternSyntaxException
    C.
    Instances of Matcher class are used to represent regular expressions in the form of String type
    D.
    None of the above

    View Answer

    Workspace

    Answer : Option B

    Explanation :



Be The First To Comment