Pass the Oracle Java SE 1z0-829 Questions and answers with CertsForce

Viewing page 2 out of 2 pages
Viewing questions 11-20 out of questions
Questions # 11:

Given:

Question # 11

What is the result?

Options:

A.

Mb

MC


B.

Mb


C.

Mb


D.

MA


E.

mA


Questions # 12:

Given the code fragment:

Question # 12

What is the result?

Options:

A.

Cat

Dog


B.

A NullPointerException is thrown

Cat

Cat


C.

Dog

Dog


D.

Cat

null


Questions # 13:

Given the code fragment:

Question # 13

What is the result?

Options:

A.

$SIM6D


B.

PT5000PT60MP6D


C.

PT5SPTIMP6D


D.

5000$60M6D


Questions # 14:

Given:

Question # 14

Options:

A.

Hello


B.

Compilation fails


C.

A NumberFormatException is thrown


D.

there


Questions # 15:

Given the code fragment:

Question # 15

Which action sorts the book list?

Options:

A.

At Line n2, replace books,sort() with books.stream().sort(0.


B.

At line n1, convert books type to mutable ArrayList type.


C.

At Line n1, convert type to mutable array type.


D.

At Line n2, replace compareTo () with compare ().


Viewing page 2 out of 2 pages
Viewing questions 11-20 out of questions