Question 16 of 76 from exam 1Z0-808: Java SE 8 Programmer I

Question 16 of 76 from exam 1Z0-808: Java SE 8 Programmer I

Question

Given the code fragment from three files:

SalesMan.java

package sales;
public class Salesman ( }

Product.java

package sales. products;
public class Product {( }

Market. java:

. package market;

.// insert code here

public class USsMarket
SalesMan sm;

L
2
3.
4.
5 Product pi
6

{

Which code fragment, when inserted at line 2, enables the code to compile?

4)
B)
c)

Dd)

E)

import
import

import
import

import
import

import
import

sales.*;

java.sales. products. *;

sales;
sales. products;

sales.*;
products. *;

sales.*;
sales. products.*;

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D. E.

E.