Winter Special Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: bigdisc65

1z0-808 Exam Dumps - Oracle Certified Associate Questions and Answers

Question # 54

This grid shows the state of a 2D array:

The grid is created with this code:

Which line of code, when inserted in place of //line n1, adds an X into the grid so that the grid contains three consecutive Xs?

Options:

A.

grid[2][1] = ‘X’;

B.

grid[3][2] = ‘X’;

C.

grid[3][1] = ‘X’;

D.

grid[2][3] = ‘X’;

Buy Now
Question # 55

Given:

What is the result?

Options:

A.

10:20

B.

0:20

C.

Compilation fails at line n1

D.

Compilation fails at line n2

Buy Now
Question # 56

You are developing a banking module. You have developed a class named ccMask that has a maskcc method.

Given the code fragment:

You must ensure that the maskcc method returns a string that hides all digits of the credit card number except the four last digits (and the hyphens that separate each group of four digits).

Which two code fragments should you use at line n1, independently, to achieve this requirement? (Choose two.)

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Buy Now
Question # 57

Given:

What is the result?

Options:

A.

Compilation fails.

B.

3 5

C.

0 0

D.

9 25

Buy Now
Question # 58

Given the code fragment:

What is the result?

Options:

A.

[JavaForum, ExpertForum]

B.

[JavaGroup, ExpertGroup]

C.

[JavaForumGroup, ExpertForumGroup]

D.

[JavaGroup, TechGroup ExpertGroup]

Buy Now
Question # 59

Which is true about the switch statement?

Options:

A.

Its expression can evaluate to a collection of values.

B.

The break statement, at the end of each case block, is optional.

C.

Its case label literals can be changed at runtime.

D.

It must contain the default section.

Buy Now
Question # 60

Which statement is true about the switch statement?

Options:

A.

It must contain the default section.

B.

The break statement, at the end of each case block, is mandatory.

C.

Its case label literals can be changed at runtime.

D.

Its expression must evaluate to a single value.

Buy Now
Question # 61

Which two code fragments cause a compilation error? (Choose two.)

Options:

A.

float flt = 100.00F;

B.

float flt = (float) 1_11.00;

C.

Float flt = 100.00;

D.

double y1 = 203.22;float flt = y1;

E.

int y2 = 100;float flt = (float) y2 ;

Buy Now
Question # 62

Given this class:

And given this main method, located in another class:

Which three lines, when inserted independently at line n1, cause the program to print a 0 balance?

Options:

A.

acct.setAmount(-acct.getAmount());

B.

acct.amount = 0;

C.

acct.setAmount(0);

D.

acct.getAmount() = 0;

E.

this.amount = 0;

F.

acct.changeAmount(0);

G.

acct.changeAmount(-acct.amount);

Buy Now
Question # 63

Given the code fragment:

Which code fragment, when inserted at line 3, enables the code to print 10:20?

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Buy Now
Exam Code: 1z0-808
Exam Name: Java SE 8 Programmer I
Last Update: Feb 5, 2025
Questions: 224
1z0-808 pdf

1z0-808 PDF

$29.75  $84.99
1z0-808 Engine

1z0-808 Testing Engine

$33.25  $94.99
1z0-808 PDF + Engine

1z0-808 PDF + Testing Engine

$47.25  $134.99