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

Viewing page 9 out of 9 pages
Viewing questions 81-90 out of questions
Questions # 81:

Which two statements are true about Java modules? (Choose two.)

Options:

A.

Modular jars loaded from --module-path are automatic modules.


B.

Any named module can directly access all classes in an automatic module.


C.

Classes found in –classpath are part of an unnamed module.


D.

Modular jars loaded from –classpath are automatic modules.


E.

If a package is defined in both the named module and the unnamed module, then the package in the unnamed module is ignored.


Questions # 82:

Given:

Question # 82

What is the output?

A)

Question # 82

B)

Question # 82

C)

Question # 82

D)

Question # 82

Options:

A.

Option A


B.

Option B


C.

Option C


D.

Option D


Questions # 83:

Your organization provides a cloud server to your customer to run their Java code. You are reviewing the changes for the next release and you see this change in one of the config files:

Question # 83

Which is correct?

Options:

A.

You accept the change because -noverify is necessary for your code to run with the latest version of Java.


B.

You reject the change because -Xms8g -Xmx8g uses too much system memory.


C.

You accept the change because -noverify is a standard option that has been supported since Java 1.0.


D.

You reject the change because -noverify is a critical security risk.


Questions # 84:

Given the code fragment:

Question # 84

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

Options:

A.

i—;


B.

continue b;


C.

break b;


D.

j--;


E.

continue a;


F.

break a ;


Questions # 85:

Given the content from the course.txt file:

Question # 85

Which code fragment at line 1 prints the lines that contain Java from the course.txt file?

A)

Question # 85

B)

Question # 85

C)

Question # 85

D)

Question # 85

E)

Options:

A.

Option A


B.

Option B


C.

Option C


D.

Option D


E.

Option E


Questions # 86:

Given these classes:

Question # 86

And this code fragment:

Question # 86

What is the result?

Options:

A.

The program prints: A


B.

The program fails to compile.


C.

The program prints: c


D.

The program throws an exception.


Questions # 87:

Which two statements are true about a class that is marked @Deprecated?

Options:

A.

There Is always another class that can be used Instead of the deprecated class.


B.

Using the class will cause the Java compiler to give a warning.


C.

The class cannot be extended.


D.

The author of the class wants to discourage people from using the class in any way.


E.

Using the class Is guaranteed to cause errors at runtime.


Questions # 88:

Given:

Question # 88

Which expression when added at line 1 will produce the output of 1.17?

Options:

A.

float z = (float)(Math.round((float)x/y*100)/100);


B.

float z = Math.round((int)(x/y),2);


C.

float z = Math.round((float)x/y,2);


D.

float z = Math.round((float)x/y*100)/(float)100;


Viewing page 9 out of 9 pages
Viewing questions 81-90 out of questions