Vidyalelo
Java Programming · Q25

Java Regular Expressions

Programming · Java Programming · question 25

Q25

What is the purpose of the `quote()` method in Java regular expressions?

A.
It returns a literal pattern string for the specified string
Answer
B.
It quotes a matched subsequence
C.
It compiles a regular expression
D.
It checks if a string matches the pattern

Answer: Option A

Solution

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