1z0-811

Review 106 1Z0-811 practice questions with answer explanations and community insights.

Question 1

Which statement is true about primitive variables?

  1. They can be compared with the == operator.
  2. They can be compared with the equals method only.
  3. They cannot be compared.
  4. They can be compared with the compareTo method only.

Question 2

Given the code fragment: What is the result?

  1. 2
  2. 4
  3. The program executes an infinite number of times.
  4. 3

Question 3

Identify two Java reserved words.

  1. array
  2. true
  3. this
  4. exception
  5. string

Question 4

Which statement is true about a Java method?

  1. It must be declared with an access modifier.
  2. It cannot be defined within another method.
  3. It must accept a parameter and return a value.
  4. It cannot be defined as static final.

Question 5

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

  1. void writeMsg();
  2. Messenger.writeMsg();
  3. writeMsg();
  4. m.writeMsg();
We are moving to a new platform

CertificationTest is being migrated. Some pages may be slow or briefly unavailable; everything will be back to normal within a few hours. If you run into any issue, email support@certificationtest.net.