21. Analyze the following code:   public class Test {   publ…

21. Analyze the following code:   public class Test {   public static void main(String[] args) {     A a = new A();     a.print();   } }   class A {   String s;   A(String s) {     this.s = s; }   void print() {     System.out.println(this.s);   } } a. The program has a compile error because class A is not a public class. b. The program has a compile error because class A does not have a default constructor. c. The program would compile and run if you change A a = new A() to A a = new A(“5”). d. option a and c e. option b and c

15. Which of the following statements are true? a. Data fiel…

15. Which of the following statements are true? a. Data fields do not have default values. b. Local variables have default values. c. A variable of a primitive type holds a reference to the value of the primitive type. d. A variable of a reference type holds a reference to where an object is stored in the memory. e. All of the above.