InterviewSolution
Saved Bookmarks
| 1. |
What is the significance of Matcher class for regular expression in java?(a) interpretes pattern in the string(b) Performs match in the string(c) interpreted both pattern and performs match operations in the string(d) None of the mentioned. |
|
Answer» The correct answer is (c) interpreted both pattern and performs match operations in the string Easiest explanation: macther() method is invoked using matcher object which interpretes pattern and performs match operations in the input string. |
|