1z0-819 Practice Test

Review 213 1Z0-819 practice questions with answer explanations and community insights.

Question 1

Given: What is the result?

  1. 2-4
  2. 0-6 1-5 2-4
  3. 1-5
  4. 1-5 2-4
  5. The compilation fails due to an error in line 1.
  6. 0-6
  7. 0-6 2-4

Question 2

Given: What is the result?

  1. 5 4 3 2 1
  2. 5
  3. nothing
  4. 5 4 3 2 1 4 3 2 1 3 2 1 2 1 1

Question 3

Given: and Which two method definitions at line n1 in the Bar class compile? (Choose two.)

  1. public List<Number> foo(Set<String> m) {...}
  2. public List<Integer> foo(Set<CharSequence> m) {...}
  3. public List<Integer> foo(TreeSet<String> m) {...}
  4. public List<Object> foo(Set<CharSequence> m) {...}
  5. public ArrayList<Integer> foo(Set<String> m) {...}
  6. public ArrayList<Number> foo(Set<CharSequence> m) {...}

Question 4

Given: What is the result?

  1. 5
  2. 4
  3. 3
  4. An exception is thrown at runtime

Question 5

Given the code fragment: What is the result?

  1. 0 8 10
  2. 0
  3. The code prints nothing.
  4. 0 4 9
  5. 0 8