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!
About Question enthuware.ocpjp.v7.2.1278 :
Moderator: admin
-
- Posts: 29
- Joined: Sat Jun 08, 2013 11:33 pm
- Contact:
-
- Site Admin
- Posts: 10036
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1278 :
Did you read the explanation for this option? It explains exactly why it is a compilation error.
HTH,
Paul.
HTH,
Paul.
If you like our products and services, please help us by posting your review here.
-
- Posts: 25
- Joined: Sat Jun 03, 2017 4:56 pm
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1278 :
The question, though, asks about the "\s", so, the correct answer is "It will not compile"
Who is online
Users browsing this forum: Bing [Bot] and 45 guests