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(s);
}
}
B. The program has a compile error because class A does not have a default constructor.
D. The program would compile and run if you change A a = new A() to A a = new A("5").