1z0-808 Practice Test

1z0-808 Practice Test practice questions, page 3 of 10, with answer review and explanations.

Question 11

Given: And given the code fragment: Book book1 = new EBook(); book1.readBook(); Which option enables the code to compile?

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

Question 12

Given: What is the result?

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

Question 13

Given: Which code fragment should you use at line n1 to instantiate the dvd object successfully?

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

Question 14

Given the code fragment: Which option can replace xxx to enable the code to print 135? A. B. C. D.

Question 15

Which statement best describes encapsulation?

  1. Encapsulation ensures that classes can be designed so that only certain fields and methods of an object are accessible from other objects.
  2. Encapsulation ensures that classes can be designed so that their methods are inheritable.
  3. Encapsulation ensures that classes can be designed with some fields and methods declared as abstract.
  4. Encapsulation ensures that classes can be designed so that if a method has an argument MyType x, any subclass of MyType can be passed to that method.