Weekend Special 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: Board70

1z0-811 Exam Dumps - Oracle Java SE Questions and Answers

Question # 4

Identify three advantages of object-oriented programming.

Options:

A.

separation of state and behavior

B.

modularity

C.

information sharing

D.

code reuse

E.

information hiding

Buy Now
Question # 5

Identify two Java reserved words.

Options:

A.

array

B.

true

C.

this

D.

exception

E.

string

Buy Now
Question # 6

Given the code:

Which code fragment, when inserted at line n1, enables the code to print sum is 30?

Options:

A.

int sum(int a, b) {

B.

int sum(int a, int b) {

C.

int sum(int, int) {

D.

int sum(int[] a, b) {

Buy Now
Question # 7

Identify two class variables.

Options:

A.

private static int numberOfSquares = 20;

B.

public static int counter = 0;

C.

private Measure cm;

D.

public int size = 10;

E.

int scale = 35;

Buy Now
Question # 8

Given:

What is the result?

Options:

A.

The code fails to compile. To make it compile, at line n1 insert:

this () { }

B.

The code fails to compile. To make it compile, at line n2 insert:

this ();

C.

The code fails to compile. To make it compile, at line n1 insert:

Bus () { }

D.

The code compiles and prints:

default

luxury

Buy Now
Question # 9

Given:

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

Options:

A.

int newFee;

B.

double newFee;

C.

long newFee;

D.

float newFee;

Buy Now
Question # 10

Given the code fragment:

Which code fragment, when inserted at line n1, enables the code to print Java Programming:1?

Options:

A.

System.out.println(name + “:” + count);

B.

System.out.println(c.name + “:” + count);

C.

System.out.println(c.name + “:” + Course.count);

D.

System.out.println(Course.name + “:” + c.count);

Buy Now
Question # 11

Given:

What is the result?

Options:

A.

A compilation error occurs in the modify method.

B.

99

C.

5

D.

A compilation error occurs in the main method.

Buy Now
Question # 12

Given the code

What is the result?

Options:

A.

The program executes indefinitely.

B.

num = 100

C.

num = 99

D.

num = 0

Buy Now
Question # 13

Given the code fragment:

What is the result?

Options:

A.

3

B.

A compilation error occurs.

C.

2

D.

0

Buy Now
Exam Code: 1z0-811
Exam Name: Java Foundations
Last Update: Feb 22, 2025
Questions: 75
1z0-811 pdf

1z0-811 PDF

$25.5  $84.99
1z0-811 Engine

1z0-811 Testing Engine

$28.5  $94.99
1z0-811 PDF + Engine

1z0-811 PDF + Testing Engine

$40.5  $134.99