会计考友 发表于 2012-8-4 12:33:16

JAVA认证历年真题:310-025精选题(17)

50. What is true about threads that stop executing?
A. When a running thread's suspend() method is called, then it is indefinitely possible for the thread to start.
B. The interpreter stops when the main method stops.
C. A thread can stop executing when another thread is in a runnable state.
D. ......
E. ......
C.
51. For which of the following code will produce "test" as output on the screen?
A. int x=10.0;
if (x=10.0)
{
System.out.println("test");
}
B. int x=012;
if (x=10.0)
{
System.out.println("test");
}
C. int x=10f;
if (x=10.0)
{
System.out.println("test");
}
D. int x=10L;
if (x=10.0)
{
System.out.println("test");
}
B.
52. Given this class ?

class Loop {
public static void main (String [] args){
int x=0;
int y=0;
outer: for (x=0; x
页: [1]
查看完整版本: JAVA认证历年真题:310-025精选题(17)