题目3多选题
分析以下代码: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); }}A. 程序有编译错误,因为类a不是公共类B. 程序有编译错误,因为类a没有默认构造函数C. 该程序编译运行良好,没有打印任何内容D. 如果将A a = new A()更改为A a = new A("5"),程序将编译并运行