Summer Sale Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: ecus65

Oracle 1z0-819 - Java SE 11 Developer

Page: 4 / 9
Total 296 questions

Given:

You want to read data through the reader object.

Which statement inserted on line 1 will accomplish this?

A.

charaters.read(0;

B.

reader,read(characters);

C.

reader.readerline();

D.

characters =reader.read();

Given the formula to calculate a monthly mortgage payment:

and these declarations:

How can you code the formula?

A.

m = p * (r * Math.pow(1 + r, n) / (Math.pow(1 + r, n) - 1));

B.

m = p * ((r * Math.pow(1 + r, n) / (Math.pow(1 + r, n)) - 1));

C.

m = p * r * Math.pow(1 + r, n) / Math.pow(1 + r, n) - 1;

D.

m = p * (r * Math.pow(1 + r, n) / Math.pow(1 + r, n) - 1);

Given:

executed using this command:

java Myclass My Car is red

What is the output of this class?

A.

Car--red--My

B.

My--Car--is

C.

My--is--java

D.

java--Myclass--My

E.

Myclass--Car--red

Given:

Which loop incurs a compile time error?

A.

the loop starting line 11

B.

the loop starting line 7

C.

the loop starting line 14

D.

the loop starting line 3

Given the declaration:

In which two locations is it legal to apply the @Resource annotation?

A.

Loc2

B.

Loc2

C.

Loc1

D.

Loc4

E.

Loc3

Given the code fragment:

Which two statement inserted independently at line 1 enable this code to print PRRT?

A.

i—;

B.

continue b;

C.

break b;

D.

j--;

E.

continue a;

F.

break a ;

Given:

What is the output?

A.

null

B.

A NoSuchElementException is thrown at run time.

C.

Duke

D.

A NullPointerException is thrown at run time.

Given:

What is the result?

A.

compilation error

B.

0 5

C.

6 13

D.

5 12

Given:

What is the result?

A.

[0,0] = Red[0,1] = White[1,0] = Black[1,1] = Blue[2,0] = Yellow[2,1] = Green[3,0] = Violet

B.

[0,0] = Red[1,0] = Black[2,0] = Blue

C.

java.lang.ArrayIndexOutOfBoundsException thrown

D.

[0,0] = Red[0,1] = White[1,0] = Black[2,0] = Blue[2,1] = Yellow[2,2] = Green[2,3] = Violet

Which three guidelines are used to protect confidential information? (Choose three.)

A.

Limit access to objects holding confidential information.

B.

Clearly identify and label confidential information.

C.

Manage confidential and other information uniformly.

D.

Transparently handle information to improve diagnostics.

E.

Treat user input as normal information.

F.

Validate input before storing confidential information.

G.

Encapsulate confidential information.