这是两种错误,程序
程序a.java在一个文件中
public class a{
}
程序b.java在另一个文件里
public class b{
a a1=new a();
public void init(){
System.out.println(a1);
}
public static void main(String[] args){
b b2=new b();
b2.init();
}
}
这两个文件都在同目录里
请问,这能编译通过吗?