1.

groupCount reports a total number of Capturing groups.(a) True(b) FalseI had been asked this question in unit test.The origin of the question is Regular Expression topic in portion Regular Expressions of Java

Answer»

The correct OPTION is (a) True

The BEST I can explain: groupCount reports TOTAL number of Capturing groups. this does not INCLUDE special group, group 0.



Discussion

No Comment Found

Related InterviewSolutions