About Question enthuware.ocpjp.i.v11.2.3220 :

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

Moderator: admin

Post Reply
teodorj
Posts: 33
Joined: Tue Jun 19, 2018 10:27 am
Contact:

About Question enthuware.ocpjp.i.v11.2.3220 :

Post by teodorj »

Cannot use 'var' on variable without initializer. In other words, a var declaration must assign a value to the variable.
var also cannot be declare as instance field

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

Re: About Question enthuware.ocpjp.i.v11.2.3220 :

Post by admin »

Enhanced explanation to include this point as well.
thank you for your feedback!
If you like our products and services, please help us by posting your review here.

goblingift
Posts: 6
Joined: Mon Mar 24, 2014 5:35 pm
Contact:

Re: About Question enthuware.ocpjp.i.v11.2.3220 :

Post by goblingift »

Unfortunately, the description for the answer 1 "var s;" hasn´t enhanced yet.

It is still "Cannot use 'var' on variable without initializer. In other words, a var declaration must assign a value to the variable."
--> But should contains the comment, that var can´t be used for instance variables at all

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

Re: About Question enthuware.ocpjp.i.v11.2.3220 :

Post by admin »

Where you are looking? I just checked the explanation and it is there.
Also, please update your question bank to v 1.53.
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 32 guests