What does the Pattern class in Java represent?

Last Updated :
Discuss
Comments

What does the Pattern class in Java represent?

It is a class that provides methods to match regular expressions

It is a class that stores strings for future matching

It is a class used to compile a regular expression into a pattern object

It is a class used to represent strings without any pattern matching

Share your thoughts in the comments