Which of the following is a method of the Matcher class used to check if a string matches the pattern?

Last Updated :
Discuss
Comments

Which of the following is a method of the Matcher class used to check if a string matches the pattern?

find()

search()

matches()

isMatch()

Share your thoughts in the comments