1.

What does public int end(int group) return?(a) offset from last character of the subsequent group(b) offset from first character of the subsequent group(c) offset from last character matched(d) offset from first character matchedI had been asked this question by my school principal while I was bunking the class.This is a very interesting question from Regular Expression in portion Regular Expressions of Java

Answer»

Correct OPTION is (a) offset from LAST CHARACTER of the subsequent group

To elaborate: public int END(int group) returns offset from the last character of the subsequent group.



Discussion

No Comment Found

Related InterviewSolutions