About Question enthuware.ocpjp.v7.2.1430 :

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

Moderator: admin

Post Reply
nskanwal308
Posts: 1
Joined: Wed Mar 21, 2018 5:20 am
Contact:

About Question enthuware.ocpjp.v7.2.1430 :

Post by nskanwal308 »

The variables in the options are local and not initialized, why would you provide incorrect code. This leads to confusion.

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

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

Post by admin »

1. The question is only asking about syntactically correct usage of assertions. So you don't really need to worry about variables being un initialized.
2. The code in the method is not complete code as indicated by ... in the middle of the method. This implies there is some code there, which is not shown because it is irrelevant to the question. This code may very will initialize the variables. But again, that is not relevant to the question because the question is clearly asking about a specific thing, which is identifying syntactically correct usage of assertions.

HTH,
Paul.
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 42 guests