1. Which of the following statements are true in Java? a. Instantiation is the act of defining a class (what data and methods does the class consist of). b. Instantiation is physically impossible in Java. c. "java" is the name of the Java compiler on the Computer Science network. d. One of the main difference between classes and interfaces is that classes have behavior (method definitions) whereas interfaces do not. e. None of the above statements are true? For questions 2 - 5 please refer to the following program: class D { public static void methodOne (A a1, A a2) { A a3 = new A (); a3.setNum (10); a1 = a3; a2 = a3; System.out.println("4: " + a1 + " " + a2); } public static void methodTwo (A a1, A a2) { a1.setNum(10); a2.setNum(10);; System.out.println("2: " + a1 + " " + a2); } public static void main (String [] argv) { A a1 = new A (); A a2 = new A (); System.out.println("1: " + a1 + " " + a2); methodOne(a1, a2); System.out.println("3: " + a1 + " " + a2); methodTwo(a1, a2); System.out.println("5: " + a1 + " " + a2); } } class A { private int num = 1; public void setNum (int no) { num = no; } public String toString () { String s = new String (); s = s + num; return s; } } 2. What is the output of the first println: System.out.println("1: " + a1 + " " + a2)? a. 1: 0 0 b. 1: 0 1 c. 1: 1 0 d. 1: 1 1 e. None of the above 3. What is the output of the second println: System.out.println("2: " + a1 + " " + a2)? a. 2: 0 0 b. 2: 1 1 c. 2: 1 10 d. 2: 10 10 e. None of the above 4. What is the output of the third println: System.out.println("3: " + a1 + " " + a2)? a. 3: 0 0 b. 3: 1 1 c. 3: 1 10 d. 3: 10 10 e. None of the above 5. What is the output of the fourth println: System.out.println("4: " + a1 + " " + a2)? a. 4: 0 0 b. 4: 1 1 c. 4: 1 10 d. 4: 10 10 e. None of the above 6. What is the output of the fifth println: System.out.println("5: " + a1 + " " + a2)? a. 5: 0 0 b. 5: 1 1 c. 5: 1 10 d. 5: 10 10 e. None of the above 7. What is the output of the following program? class Q7 { public static void main (String [] argv) { int x, y, z; x = 3; y = 5; z = ++x*y++; System.out.println(z); } } a. 15 b. 18 c. 20 d. 24 e. None of the above 8. Which of the following is true about the main () method in Java? a. It is the starting execution point in most Java programs b. There can only be one main method in a Java program c. The main method never has anything to do with where Java programs begin d. (a) & (b) e. None of the above are true 9. What is the relationship between class A & class B? class A { B b = new B (); } class B { int num; } a. "Has-a" b. Inheritance c. "Is-a" d. (b) & (c) e. None of the above