Month End Special 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: sale65best

How to Pass the Oracle 1z0-808 Exam: Comprehensive Java SE 8 Programmer I Guide and Tips

Questions 51

Given the code fragment:

1z0-808 Question 51

What is the result?

Options:
A.

[JavaForum, ExpertForum]

B.

[JavaGroup, ExpertGroup]

C.

[JavaForumGroup, ExpertForumGroup]

D.

[JavaGroup, TechGroup ExpertGroup]

Oracle 1z0-808 Premium Access
Questions 52

Given the definitions of the Bird class and the Peacock class:

1z0-808 Question 52

and the code fragment:

1z0-808 Question 52

Which code snippet can be inserted to print Fly.Dance. ?

Options:
A.

Bird p = new Peacock();

B.

Bird b = new Bird();Peacock p = (Peacock) b;

C.

Peacock b = new Peacock ();Bird p = (Bird) b;

D.

Bird b = new Peacock ();Peacock p = (Peacock) b;

Questions 53

Given the code fragment:

1z0-808 Question 53

Which modification enables the code to print 54321?

Options:
A.

Replace line 6 with System.out. print (--x) ;

B.

At line 7, insert x --;

C.

Replace line 6 with --x; and, at line 7, insert System.out.print (x);

D.

Replace line 12 with return (x > 0) ? false: true;

Questions 54

Given:

1z0-808 Question 54

What is the result?

Options:
A.

int main 1

B.

Object main 1

C.

String main 1

D.

Compilation fails

E.

An exception is thrown at runtime

Questions 55

Given:

1z0-808 Question 55

and the code fragment:

1z0-808 Question 55

What is the result?

Options:
A.

true:false:true

B.

false:true:true

C.

false:true:false

D.

true:true:false

Questions 56

Given the code fragment:

1z0-808 Question 56

What is the result?

Options:
A.

100

B.

101

C.

102

D.

103

E.

Compilation fails

Questions 57

Given the code fragment:

1z0-808 Question 57

What is the result?

Options:
A.

1 2 3 0 01 2 3 0 0

B.

An Exception is thrown at run time.

C.

1 2 3 0 01 2 3

D.

1 2 31 2 3

Questions 58

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.

Questions 59

Given:

1z0-808 Question 59

What is the result?

Options:
A.

null:null:0.0

B.

null:null

C.

<>:0.0

D.

null:0.0

Questions 60

Given the code from the App.java file:

1z0-808 Question 60

Which command prints SE 8 standard in the console window?

Options:
A.

java App ''SE 8'' Standard''

B.

java App ''SE 8 Standard''

C.

java App ''SE 8'' Standard

D.

java App SE 8 Standard

Exam Code: 1z0-808
Certification Provider: Oracle
Exam Name: Java SE 8 Programmer I
Last Update: Jan 24, 2025
Questions: 224