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....
OCA exam question????
Moderator: admin
-
- Posts: 14
- Joined: Thu Dec 22, 2016 8:55 pm
- Contact:
-
- Site Admin
- Posts: 10046
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: OCA exam question????
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.
-
- Posts: 14
- Joined: Thu Dec 22, 2016 8:55 pm
- Contact:
Re: OCA exam question????
I got this question from practice exam in oca sybex test bank...
Who is online
Users browsing this forum: No registered users and 103 guests