Which package would you import to use the Random class?
java.io
java.math
java.util
java.lang
Given the code fragment:
What is the result?
9
12
10
14
Given the classes:
Which two modifications, independently, enable the Salad.java file to compile?
Replace line n1 with import fruits.Apple.getApple();
Replace line n1 with import fruits.Apple;
Replace line n1 with import fruits;
Replace line n2 with fruits.Apple apple = new Apple ();
Replace line n2 with fruits.Apple apple = new fruits.Apple ();