About Question com.enthuware.ets.scjp.v6.2.446 :

All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.

Moderators: Site Manager, fjwalraven

Post Reply
ETS User

About Question com.enthuware.ets.scjp.v6.2.446 :

Post by ETS User »

Hello,

All of the examples are missing the last closing bracket at the very end. It should be :

if ( (str != null) | ( i == str.length() ) )
if ( (str == null) | ( i == str.length() ) )
if ( (str != null) || (i == str.length() ) )
if ( (str == null) || (i == str.length() ) )

So correct answer should be all 4!

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

Re: About Question com.enthuware.ets.scjp.v6.2.446 :

Post by admin »

You are right. This has now been fixed.

thank you for your feedback!

Post Reply

Who is online

Users browsing this forum: No registered users and 13 guests