Leads4pass > Oracle > Oracle Java > 1Z0-815 > 1Z0-815 Online Practice Questions and Answers

1Z0-815 Online Practice Questions and Answers

Questions 4

Given: What is the output?

A. 300

B. Exception

C. 200

D. 100

Buy Now
Questions 5

Given:

Which would cause s to be AQCD?

A. s.replace(s.indexOf("A"), s.indexOf("C"), "Q");

B. s.replace(s.indexOf("B"), s.indexOf("C"), "Q");

C. s.replace(s.indexOf("B"), s.indexOf("B"), "Q");

D. s.replace(s.indexOf("A"), s.indexOf("B"), "Q");

Buy Now
Questions 6

Given:

Which two constructors will compile and set the class field strings? (Choose two.)

A. Option A

B. Option B

C. Option C

D. Option D

E. Option E

Buy Now
Questions 7

Which two describe reasons to modularize the JDK? (Choose two.)

A. easier to understand the Java language

B. improves security and maintainability

C. easier to expose implementation details

D. improves application robustness

E. easier to build a custom runtime linking application modules and JDK modules

Buy Now
Questions 8

Given: What is known about the Sportscar class?

A. The Sportscar class is a subclass of Automobile and inherits its methods.

B. The Sportscar subclass cannot override setTurbo method from the superclass Automobile.

C. The Sportscar class is a superclass that has more functionality than the Automobile class.

D. The Sportscar class inherits the setTurbo method from the superclass Automobile.

Buy Now
Questions 9

Given: Which statement is true?

A. Class Tester does not need to import java.time.LocalDate because it is already visible to members of the package test.

B. All classes from the package java.time. are loaded for the class Diary.

C. Only LocalDate class from java.time package is loaded.

D. Tester must import java.time.LocalDate in order to compile.

Buy Now
Questions 10

Given: What is the result?

A. null

B. nothing

C. It fails to compile.

D. java.lang.IllegalAccessException is thrown.

E. Student

Buy Now
Questions 11

Given: Which two lines can replace line 1 so that the Y class compiles? (Choose two.)

A. map.forEach((k, v) -> set(v)));

B. set(map.values());

C. super.set(List map)

D. super.set(map.values());

E. set(map)

Buy Now
Questions 12

Given: What is the result?

A. Joe Marry

B. Joe null

C. null null

D. null Mary

Buy Now
Questions 13

Given: What is the result?

A. NullPointerException is thrown at line 4.

B. NullPointerException is thrown at line 10.

C. A compilation error occurs.

D. Hello

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

PDF (Q&A)

$49.99

VCE

$55.99

PDF + VCE

$65.99