nerdexam
Oracle

1Z0-808 · Question #51

1Z0-808 Question #51: Real Exam Question with Answer & Explanation

Sign in or unlock 1Z0-808 to reveal the answer and full explanation for question #51. The question stem and answer options stay visible for context.

Java Basics

Question

QUESTION 62 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?

Options

  • Aimport sales.*;
  • Bimport java.sales.products.*;
  • Cimport sales; import sales.products;
  • Dimport sales.; import products.;
  • Eimport sales.; import sales.products.;

Unlock 1Z0-808 to see the answer

You've previewed enough free 1Z0-808 questions. Unlock 1Z0-808 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#package structure#import statements#class resolution#package hierarchy
Full 1Z0-808 Practice
QUESTION 62 Given the code fragment from three files:... | 1Z0-808 Q#51 Answer | NerdExam