Page 1 of 1

About Question enthuware.ocpjp.v7.2.1278 :

Posted: Tue Sep 17, 2013 7:48 pm
by nickeasyuptech
Why is this a compilation error instead of a PatternSyntaxException?


It seems to match the description -

public class PatternSyntaxException
extends IllegalArgumentException
Unchecked exception thrown to indicate a syntax error in a regular-expression pattern.

Thanks for your help!

Re: About Question enthuware.ocpjp.v7.2.1278 :

Posted: Wed Sep 18, 2013 8:36 am
by admin
Did you read the explanation for this option? It explains exactly why it is a compilation error.

HTH,
Paul.

Re: About Question enthuware.ocpjp.v7.2.1278 :

Posted: Sat Oct 21, 2017 1:49 am
by thodoris.bais
The question, though, asks about the "\s", so, the correct answer is "It will not compile"