![](https://csdnimg.cn/release/download_crawler_static/88443440/bg4.jpg)
Which line would be cause the error?
error one precisely Example.java,causes called file a of contents entire is code following The
during compilation:
class SubClass extends BaseClass{
}
class BaseClass(){
String str;
public BaseClass(){
System.out.println(“ok”);}
public BaseClass(String s){
str=s;}}
public class Example{
public void method(){
SubClass s=new SubClass(“hello”);
BaseClass b=new BaseClass(“world”);
}
}
Which line would be cause the error?
A.9
B.10
C.11
D.12
3:鉴于 Java 的特点,它最适合的计算环境是
A.并行计算环境
B.分布式计算环境
C.高强度计算环境
D.开放式计算环境
4:
What will be printed when you execute the following code?
class X
{
Y b = new Y();
X()
{