Free 1Z0-808 Exam Braindumps

Given the code fragment:


What is the result?

  1. 10 : 10
  2. 5 : 5
  3. 5 : 10
  4. Compilation fails

Answer(s): A



Given the code fragment:
float x = 22.00f % 3.00f;
int y = 22 % 3;
System.out.print(x + ", "+ y);

What is the result?

  1. 1.0, 1
  2. 1.0f, 1
  3. 7.33, 7
  4. Compilation fails
  5. An exception is thrown at runtime

Answer(s): A



Given:



What is the result?

  1. x: 1 y: 2
  2. 3 y: 4
  3. x: 0 y: 0
  4. 3 y: 4
  5. x: 1 y: 2
  6. 0 y: 0
  7. x: 0 y: 0
  8. 0 y: 0

Answer(s): C



Given the following class declarations:
public abstract class Animal
public interface Hunter
public class Cat extends Animal implements Hunter public class Tiger extends Cat
Which answer fails to compile?

  1. Option A
  2. Option B
  3. Option C
  4. Option D
  5. Option E

Answer(s): E

Explanation:

Look at the right side of the declaration ArrayLIst() rather than ArrayList