Oracle Java SE 7 Programmer II - 1Z1-804 FREE EXAM DUMPS QUESTIONS & ANSWERS

Given:

What is the result?
Correct Answer: E Vote an answer
Given:
import java.util.concurrent.atomic.AtomicInteger;
public class AtomicCounter {
private AtomicInteger c = new AtomicInteger(0);
public void increment() {
// insert code here
}
}
Which line of code, inserted inside the increment () method, will increment the value of c?
Correct Answer: C Vote an answer
Explanation: Only visible for FreeCram members. You can sign-up / login (it's free).
Given:

What is the result?
Correct Answer: A Vote an answer
Given:

Which statement will iterate through Direction?
Correct Answer: C Vote an answer
Explanation: Only visible for FreeCram members. You can sign-up / login (it's free).
Given: And the commands: javac Counter.java java ea Counter

What is the result?
Correct Answer: B Vote an answer
Explanation: Only visible for FreeCram members. You can sign-up / login (it's free).
Which four are syntactically correct?
Correct Answer: B,C,D,E Vote an answer
0
0
0
10