OCA exam question????

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

Moderator: admin

Post Reply
sulakshana
Posts: 14
Joined: Thu Dec 22, 2016 8:55 pm
Contact:

OCA exam question????

Post by sulakshana »

int x= 10%2
int y= 3/5 + ++x;
int z += 4 * x;
System.out.print(x", "y "," z);
The answer for this question is code does not compile because of line 4 as z is not declared before compound assignment.but what I selected is code does not compile because of line 3 because int x needed to be corrected as double x to compile.... Which answer is correct....

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

Re: OCA exam question????

Post by admin »

Did you find this question in our question bank? If so, please mention the question id. Otherwise, please mention the source so that we can look it up.
If you like our products and services, please help us by posting your review here.

sulakshana
Posts: 14
Joined: Thu Dec 22, 2016 8:55 pm
Contact:

Re: OCA exam question????

Post by sulakshana »

I got this question from practice exam in oca sybex test bank...

Post Reply

Who is online

Users browsing this forum: No registered users and 103 guests