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

问题:

[单选]

public class Threads3 implements Runnable { 
public void run() { 
System.out.print(”running”); 
} 
public static void main(String[] args) { 
Thread t = new Thread(new Threads3()); 
t.run(); 
t.run(); 
t.start(); 
} 
} 
What is the result?() 

A .  Compilation fails.
B .  An exception is thrown at runtime.
C .  The code executes and prints “running”.
D .  The code executes and prints “runningrunning”.
E .  The code executes and prints “runningrunningrunning”.

“书楚语,作楚声”一语说的是() 中原文化。 齐鲁文化。 巴蜀文化。 屈原文学。 CPC(每点击成分) 房地产投资是以牺牲一定量的即期消费为代价,换取未来更多的预期消费。 中华民族的祖先在创建它的古代文明时,首先面临的特点是() 大地域上自然环境优越。 大地域上社会环境优越。 大地域上人口构成多族群。 大地域上人口构成较松散。 从CIS理论分析,著名集团统一企业的标语是“开创健康快乐的明天”是基于()理念提出的? 企业行为识别。 企业理念识别。 企业视觉识别。 D企业经营识别。

public class Threads3 implements Runnable { 
public void run() { 
System.out.print(”running”); 
} 
public static void main(String[] args) { 
Thread t = new Thread(new Threads3()); 
t.run(); 
t.run(); 
t.start(); 
} 
} 
What is the result?() 

参考答案:

  参考解析

本题暂无解析

在线 客服