Question - What are the type of classes in Java?
Answer -
There are three types of classes in Java:
- Pattern Class - Used as a compiled representation of a regular expression.It provides no public constructors.
- Matcher Class - Used as an engine which interprets the pattern and also performs match operations against an input string.
- PatternSyntaxException - Used in indicating a syntax error in a regular expression pattern.