a我考网

 找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 76|回复: 0

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

[复制链接]
发表于 2012-8-4 12:33:16 | 显示全部楼层 |阅读模式
50. What is true about threads that stop executing?& [) Q# j* E2 o5 n, p
A. When a running thread's suspend() method is called, then it is indefinitely possible for the thread to start.6 e5 g" [/ P3 b9 I# m
B. The interpreter stops when the main method stops.; f( K7 ^& r# s3 O4 @; w1 x
C. A thread can stop executing when another thread is in a runnable state.( ], R% ~. |+ _1 c% `8 t# q# h& U
D. ......) c1 x. i) W0 W% |
E. ......9 s  @9 D. O2 c7 z8 \* t! C
C.9 ?/ ?% O3 @6 P5 r3 i1 l
51. For which of the following code will produce "test" as output on the screen?( V6 |! ]+ B1 }  m2 ~# Y
A. int x=10.0;0 v1 n+ r8 i/ u0 T$ @+ x
if (x=10.0)
4 v/ g" Z$ U+ x( q) z# m/ q7 E( ]{
! @! l2 i; T$ h# S$ K8 ]* x& oSystem.out.println("test");
" J6 I# @* x  \. H' G}
' z! B+ i& ^- E9 p' Q  Y- ?3 n& bB. int x=012;
: t1 a2 O" w) X/ v6 x9 `if (x=10.0)& `+ C' p. S5 `- b! u
{# r2 N$ u% J% b) g$ L, ]: @, W
System.out.println("test");
) s! G$ p, x: Q& I9 D( s6 n1 Q}; [! Y5 s: R5 K0 d" v0 S
C. int x=10f;
- ?! h$ ?: R9 d9 lif (x=10.0): D3 u% p6 |9 E9 G/ f) t% k) b) O
{
6 M* M: W& a1 b$ d0 pSystem.out.println("test");
% \8 e: u0 v- \( f0 b}; \9 z& p. D! O8 W
D. int x=10L;( d6 W; p% B0 n2 \
if (x=10.0)- ~, Q% b7 I# K( C/ s
{
5 }+ b9 k9 d3 YSystem.out.println("test");
; Y* w- X: M2 u/ C9 H  R}2 }% V* ^" U# K  j2 ^/ H
B." }$ b5 t, p( y- {# F! ?
52. Given this class ?
  R: z" U2 Y& t6 ?$ k* L6 z- d% O% _; a  Z
class Loop {+ E! ?1 h* K; t. y
public static void main (String [] args){3 K* U- l( q" b
int x=0;
" X; B! S4 z4 Q! \' s+ I8 lint y=0;3 s6 Z" O8 T# I/ {4 [9 V* c6 l
outer: for (x=0; x
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Woexam.Com ( 湘ICP备18023104号 )

GMT+8, 2024-6-2 13:51 , Processed in 0.298294 second(s), 22 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表