1z0-811

1z0-811 practice questions, page 3 of 5, with answer review and explanations.

Question 11

Given: What is the result?

  1. [null:-]
  2. [ : ]
  3. [null:null]
  4. [:null]

Question 12

Which two Java reserved words are used to implement encapsulation?

  1. final
  2. static
  3. public
  4. extends
  5. private

Question 13

Given the code fragment: Which code fragment can be inserted at line n1 to enable the code to print 0.0?

  1. Ball b = null; b.weight = 0.0;
  2. Ball.weight = 0.0;
  3. Ball b = new Ball(0.0);
  4. Ball b = new Ball();

Question 14

Which two statements are true about the Java Runtime Environment (JRE)?

  1. It is responsible for garbage collection.
  2. It interprets bytecode stored in a .class file.
  3. It contains the JDK and Java APIs.
  4. It is platform independent.
  5. You must install the JRE to compile a .java file.

Question 15

Identify two features of Java.

  1. architecture dependent
  2. platform independent
  3. single threaded
  4. robust