Pass4itsure > Oracle > Oracle Certifications > 1Z0-815 > 1Z0-815 Online Practice Questions and Answers

1Z0-815 Online Practice Questions and Answers

Questions 4

Given:

What is the result?

A. nothing

B. It fails to compile.

C. 0

D. A java.lang.IllegalArgumentException is thrown.

E. 10

Buy Now
Questions 5

Given: What is the output?

A. 300

B. Exception

C. 200

D. 100

Buy Now
Questions 6

Given:

What is the result?

A. It throws a runtime exception.

B. Value of Euler = 2.71828

C. The code does not compile.

D. Value of Euler = "2.71828"

Buy Now
Questions 7

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

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.

Buy Now
Questions 8

Given: What is the result?

A. The compilation fails.

B. 1.99,2.99,0

C. 1.99,2.99,0.0

D. 1.99,2.99

Buy Now
Questions 9

Given: What is the result?

A. 2134

B. 2143

C. 214

D. 234

Buy Now
Questions 10

Given:

Which two statements can be added at line 1 in Bar to successfully compile it? (Choose two.)

A. public List foo(Set m) { ... }

B. public ArrayList foo(Set m) { ... }

C. public List foo(TreeSet m) { ... }

D. public List foo(Set m) { ... }

E. public List foo(Set m) { ... }

F. public ArrayList foo(Set m) { ... }

Buy Now
Questions 11

Which describes an aspect of Java that contributes to high performance?

A. Java prioritizes garbage collection.

B. Java has a library of built-in functions that can be used to enable pipeline burst execution.

C. Java monitors and optimizes code that is frequently executed.

D. Java automatically parallelizes code execution.

Buy Now
Questions 12

Which command line runs the main class com.acme.Main from the module com.example?

A. java --module-path mods com.example/com.acme.Main

B. java –classpath com.example.jar com.acme.Main

C. java --module-path mods -m com.example/com.acme.Main

D. java -classpath com.example.jar –m com.example/com.acme.Main

Buy Now
Questions 13

Which three initialization statements are correct? (Choose three.)

A. int x = 12_34;

B. short sh = (short)`A';

C. String contact# = "(+2) (999) (232)";

D. boolean true = (4 == 4);

E. float x = 1.99;

F. int[][] e = {{1,1},{2,2}};

G. byte b = 10; char c = b;

Buy Now
Exam Code: 1Z0-815
Exam Name: Java SE 11 Programmer I
Last Update: May 25, 2026
Questions: 95
10%OFF Coupon Code: SAVE10

PDF (Q&A)

$49.99

VCE

$55.99

PDF + VCE

$65.99