About Question enthuware.ocpjp.v7.2.1607 :

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

Moderator: admin

Post Reply
bptoth
Posts: 33
Joined: Mon May 06, 2013 9:41 am
Contact:

About Question enthuware.ocpjp.v7.2.1607 :

Post by bptoth »

In the explanation of option two "only for package named TestClass" should be likely "only for class named TestClass"?

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

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

Post by admin »

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

bptoth
Posts: 33
Joined: Mon May 06, 2013 9:41 am
Contact:

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

Post by bptoth »

Maybe I missed something, but my understanding was that to enable assertions for some package, the postfix "..." should be used. In this case we have "java -ea:TestClass" which seems to indicate that we would like to enable assertions for the class TestClass, and it would be "java -ea:TestClass..." that would enable assertions for a package called TestClass

The link you suggested seems to indicate the same: With one argument ending in "...", assertions are enabled in the specified package. and With one argument not ending in "...", assertions are enabled in the specified class.

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

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

Post by admin »

You are right. I misread. Very sorry about that :(
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 258 guests