About Question enthuware.ocpjp.v17.2.3670 :

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

Moderator: admin

Post Reply
Badem48
Posts: 26
Joined: Thu Aug 24, 2023 4:33 pm
Contact:

About Question enthuware.ocpjp.v17.2.3670 :

Post by Badem48 »

I am not sure the
""" immediately followed by a new line
is not wrong.
In the Oracle Java documentation https://docs.oracle.com/javase/specs/jl ... jls-3.10.6
The opening delimiter is a sequence that starts with three double quote characters ("""), continues with zero or more space, tab, and form feed characters, and concludes with a line terminator.
So if there is no white space it is still okay.

Thanks

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

Re: About Question enthuware.ocpjp.v17.2.3670 :

Post by admin »

Right, that is why option 3, which says "any number of white spaces" is correct. It includes """ immediately followed by a new line
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: No registered users and 237 guests