Java SE 8 Programmer 1Z0–808 Practice Full Test 1

© examsiri.com
Question : 9 of 84
 
Marks: +1, -0
Given the code fragment from three files:
SalesMan.java:

package sales;
public class SalesMan {}


Product.java:
package sales.products;
public class Product {}


Market.java:

1.package market;
2. // insert code here
3.public class USMarket {
4.  SalesMan sm;
5.  Product p;
6.}

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