Limited-Time Offer: Enjoy 50% Savings! Ends in 00h 00m 00s Coupon code: 50OFF
Skip to content

Free Oracle Java Foundations 1Z0-811 Exam Questions

Page: 1 / 8 Total 75 questions

Want more questions? Get Premium Access.

Question 1

Given:

What is the result?

Correct Answer: D. An error occurs during compilation.

Question 2

Given the code fragment:

What is the result?

Correct Answer: B. true true

Question 3

Which statement is valid?

Correct Answer: A. int 2 totalScore = 0;

Question 4

Given:

Which statement, when inserted at line n1, enables the Course class to compile?

Correct Answer: B. double newFee;

Question 5

Identify two valid data types for the operands of the addition (+) operator?

Correct Answer: A. string; D. array

Question 6

You have a microprocessor board, such as Raspberry PI, wired to control a drone.

Which edition of Java is geared towards use of simple, closed systems with constrained memory requirements, such as a microprocessor board?

Correct Answer: D. Java SE Embedded

Question 7

Identify two features of Java.

Correct Answer: B. platform independent; D. robust

Question 8

Which method identifier is correct according to Java naming conventions?

Correct Answer: D. Calculator

Question 9

Given the code fragment:

Which statement is true?

Correct Answer: B. The code compiles successfully

Question 10

Given the code fragment:

Which code fragment, when inserted at line n1, enables the code to print one?

Correct Answer: B. String var = ''1'';