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.The question was asked in my homework.The doubt is from Regular Expression topic in portion Regular Expressions of Java

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.



Discussion

No Comment Found

Related InterviewSolutions