New Year Special 60% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: bestdeal

Free Oracle 1z0-811 Practice Exam with Questions & Answers | Set: 2

Questions 11

Given the code fragment:

1z0-811 Question 11

What is the result?

Options:
A.

A compilation error occurs.

B.

A runtime exception is thrown.

C.

Julia

Peter

D.

Peter

Julia

Oracle 1z0-811 Premium Access
Questions 12

Given the code fragment:

1z0-811 Question 12

What is the result?

Options:
A.

3

B.

A compilation error occurs.

C.

2

D.

0

Questions 13

Given the code fragment:

1z0-811 Question 13

What is the result?

Options:
A.

3 : 1

B.

3 : 2

C.

0 : 1

D.

2 : 0

Questions 14

Given:

1z0-811 Question 14

And the code fragment:

1z0-811 Question 14

What is the result?

Options:
A.

A compilation error occurs at line n1.

B.

White : null

C.

null: null

D.

White : White

Questions 15

Which two Java reserved words are used to implement encapsulation?

Options:
A.

final

B.

static

C.

public

D.

extends

E.

private

Questions 16

Given the code fragment:

1z0-811 Question 16

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);

Questions 17

Identify two features of Java.

Options:
A.

architecture dependent

B.

platform independent

C.

single threaded

D.

robust

Questions 18

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

Options:
A.

string

B.

boolean

C.

numeric

D.

array

Questions 19

Which statement is true about exception handling?

Options:
A.

At least one catch block must accompany a try statement.

B.

All statements in a try block are executed, even if an exception occurs in the middle of the try block.

C.

At least one statement in a try block must throw an exception.

D.

All catch blocks must be ordered from general to most specific.

Questions 20

Given the contents of the Test.java file:

1z0-811 Question 20

What is the result?

Options:
A.

200 : 400

B.

A compilation error occurs at line n1.

C.

A compilation error occurs at line n2.

D.

100 : 400