About Question enthuware.ocpjp.v7.2.1278 :

Help and support on OCA OCP Java Programmer Certification Questions
1Z0-808, 1Z0-809, 1Z0-815, 1Z0-816, 1Z0-817

Moderator: admin

Post Reply
nickeasyuptech
Posts: 29
Joined: Sat Jun 08, 2013 11:33 pm
Contact:

About Question enthuware.ocpjp.v7.2.1278 :

Post 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!

admin
Site Admin
Posts: 10036
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post by admin »

Did you read the explanation for this option? It explains exactly why it is a compilation error.

HTH,
Paul.
If you like our products and services, please help us by posting your review here.

thodoris.bais
Posts: 25
Joined: Sat Jun 03, 2017 4:56 pm
Contact:

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

Post by thodoris.bais »

The question, though, asks about the "\s", so, the correct answer is "It will not compile"

Post Reply

Who is online

Users browsing this forum: No registered users and 59 guests