1.

Which of the following is not a class of java.util.regex?(a) Pattern class(b) matcher class(c) PatternSyntaxException(d) Regex classThis question was posed to me by my school principal while I was bunking the class.This interesting question is from Regular Expression in section Regular Expressions of Java

Answer»

Correct ANSWER is (d) Regex class

Explanation: java.util.regex CONSISTS 3 CLASSES. PatternSyntaxException indicates SYNTAX ERROR in regex.



Discussion

No Comment Found

Related InterviewSolutions