6. Analyze the following code. Numberl] numberArray- new integer121: numberArraylo)-new Double(1.5) Which of the following statements is correct? a. You cannot use Number as a data type since it is an abstract class. b. Since each element of numberArray is of the Number type, you cannot assign an Integer object to it. c. Since each element of numberArray is of the Number type, you cannot assign a Double object to it. d. At runtime, new Integer12) is assigned to numberArray. This makes each element of numberArray an Integer object. So you cannot assign a Double object to it. 7. Which of the following is a correct interface? a. interface A f void print ( b. abstract interface A (print();) c. abstract interface A ( abstract void print() :) d. interface A f void print0):) 8.is not a reference type. a. A class type b. An interface type C. An array type d. A primitive type 9. Which of the following statements are true? a. The String class implements Comparable. b. The Date class implements Comparable. c. The Double class implements Comparable. d. The Biginteger class implements Comparable. e. All of the above 10. The relationship between an interface and the class that implements it is a. Composition b. Aggregation c. Inheritance d. None 11. The output from the following code is java.util.Arrayist Strings list new java.util.ArrayListeString list.add("New York"l: java.util.ArraytisteString list1 java.util.ArrayList String list.clone list.add("Atlanta"l ist1.add( Dallas" System.out.printin/(list1) a. [New York) b. (New York, Atlanta c. [New York, Atlanta, Dallas] d. (New York, Dallas] 12. The GeometricObject and Circle classes are defined in this chapter. Analyze the following code Which statements are correct? public class Test public static void main(Stringl) args) ( GeometricObject x - new Circle(3) GeometricObject y = (Circle)(x-clone()); System.out.printin(x) System.out.printin(y): a. The program has a compile error because the clone() method is protected in the Object class. b. After you override the clonel) method and make it public in the Circle class, the problem can compile and run just fine, but y is null f Circle does not implement the Cloneable interface. c. To enable a Circle object to be cloned, the Circle class has to override the clonel) method and implement the java.lang.Cloneable interface. d. If Geometricobject implements Cloneable and Circle overrides the clonel) method, the clone method will work fine to clone Circle objects e. All of the above. 13. Which of the following statements is false? a. If you compile an interface without errors, a class file is created for the interface b. If you compile a class without errors but with warnings, a class file is created. c. If you compile a class with errors, a class file is created for the class. d. If you compile an interface without errors, but with warnings, a class file is created for the interface