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

Given the code fragment from three files: Which code fragment, when inserted at line 2,
enables the code to compile?

Given the code fragment from three files: Which code fragment, when inserted at line 2,
enables the code to compile?

A.
Option E

B.
Option D

C.
Option A

D.
Option C

E.
Option B



Leave a Reply 6

Your email address will not be published. Required fields are marked *


mrtsilva

mrtsilva

Correct Answer : A – Option E
import sales.*;
import sales.products.*;

Note: The file Market.java should be renamed to USMarket.java according with the suggestion of netbeans.

Kanke

Kanke

Definitely E

Tomas

Tomas

Answer: A (option E)
Tested

JoJo

JoJo

Answer: A (option E)