Pass the Oracle Oracle Certified Associate 1z0-808 Questions and answers with CertsForce

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

Examine the content of App.java:

Question # 11

Which is true?

Options:

A.

The App.class file is stored within the p1 folder. The Test.class file is stored within the p2 sub-folder of p1.


B.

The App class is accessible within the Test class without an import statement.


C.

import p1.App; is used to access the App class within the Test class.


D.

It is optional to have the package statement as the first line of class definitions.


Expert Solution
Questions # 12:

Given these classes:

Question # 12

And given this main method:

Question # 12

Which two options compile when placed at line n1 of the main method? (Choose two.)

Options:

A.

director.stockOptions = 1_000;


B.

employee.salary = 50_000;


C.

manager.budget = 1_000_000;


D.

manager.stockOption = 500;


E.

employee.budget = 200_000;


F.

director.salary = 80_000;


Expert Solution
Questions # 13:

Given the code fragment:

Question # 13

What is the result?

Options:

A.

AB


B.

A element 0B element 1


C.

A NullPointerException is thrown at runtime.


D.

A 0B 1


Expert Solution
Questions # 14:

Given:

Question # 14

What is the result?

Options:

A.

Good Luck!


B.

Good Day!


C.

Welcome!


D.

Hello!


Expert Solution
Questions # 15:

Given:

Question # 15

What is the result?

Options:

A.

AB


B.

AC


C.

CC


D.

A ClassCastException is thrown only at line n1.


E.

A ClassCastException is thrown only at line n2.


Expert Solution
Questions # 16:

Which two array initialization statements are valid? (Choose two.)

Options:

A.

int array[] = new int[3] {1, 2, 3};


B.

int array[] = new int[3]; array[0] = 1;

array[1] = 2;

array[2] = 3;


C.

int array[3] = new int[] {1, 2, 3};


D.

int array[] = new int[3]; array = {1, 2, 3};


E.

int array[] = new int[] {1,2,3};


Expert Solution
Questions # 17:

Given:

Question # 17

What is the result?

Options:

A.

double sum is 30.0 float sum is 30.0


B.

float sum is 30.0 double sum is 30.0


C.

Integer sum is 30 double sum is 30.0


D.

Integer sum is 30 float sum is 30.0


Expert Solution
Questions # 18:

Given the code fragment:

Question # 18

Which modification enables the code fragment to print TrueDone?

Options:

A.

Replace line 5 With String opt = "true";Replace line 7 with case "true":


B.

Replace line 5 with boolean opt = l;Replace line 7 with case 1:


C.

At line 9, remove the break statement.


D.

Remove the default section.


Expert Solution
Questions # 19:

Given the code fragment:

Question # 19

What is the result?

Options:

A.

1324


B.

2313


C.

3142


D.

4231


Expert Solution
Questions # 20:

Given the code fragment:

Question # 20

What is the result?

Options:

A.

An exception is thrown at runtime.


B.

Compilation fails.


C.

13480.0


D.

13480.02


Expert Solution
Viewing page 2 out of 7 pages
Viewing questions 11-20 out of questions