当前位置:SCJP程序员认证考试题库

问题:

[单选]

public class TestOne implements Runnable { 
public static void main (String[] args) throws Exception { 
Thread t = new Thread(new TestOne()); 
t.start(); 
System.out.print(”Started”); 
t.join(); 
System.out.print(”Complete”); 
} 
public void run() { 
for (int i= 0; i< 4; i++) { 
 System.out.print(i); 
} 
} 
} 
What can be a result?()

A .  Compilation fails.
B .  An exception is thrown at runtime.
C .  The code executes and prints “StartedComplete”.
D .  The code executes and prints “StartedComplete0123”.
E .  The code executes and prints “Started0l23Complete”.

简述中国古代类比思维的特征。 按热工典型阶跃响应曲线的变化特点划分,热工对象可分为哪两大类,说明其变化特征。 体育课程内容资源主要包括()、()、()等。 根据来源体育课程资源可以分类为()、()。 简述清代密奏的行文程序

public class TestOne implements Runnable { 
public static void main (String[] args) throws Exception { 
Thread t = new Thread(new TestOne()); 
t.start(); 
System.out.print(”Started”); 
t.join(); 
System.out.print(”Complete”); 
} 
public void run() { 
for (int i= 0; i< 4; i++) { 
 System.out.print(i); 
} 
} 
} 
What can be a result?()

参考答案:

  参考解析

本题暂无解析

在线 客服