Labour Day Special - Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: top65certs

Complete 1z0-811 Oracle Materials

Page: 3 / 3
Total 75 questions

Java Foundations Questions and Answers

Question 9

Which package would you import to use the Random class?

Options:

A.

java.io

B.

java.math

C.

java.util

D.

java.lang

Question 10

Given the code fragment:

What is the result?

Options:

A.

9

12

B.

10

10

C.

9

9

D.

10

14

Question 11

Given the classes:

Which two modifications, independently, enable the Salad.java file to compile?

Options:

A.

Replace line n1 with import fruits.Apple.getApple();

B.

Replace line n1 with import fruits.Apple;

C.

Replace line n1 with import fruits;

D.

Replace line n2 with fruits.Apple apple = new Apple ();

E.

Replace line n2 with fruits.Apple apple = new fruits.Apple ();

Page: 3 / 3
Total 75 questions