a我考网

 找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 81|回复: 1

[考试试题] 2011年JAVA认证模拟题(19)

[复制链接]
发表于 2012-8-4 12:33:16 | 显示全部楼层 |阅读模式
Q55 What is the value of y after execution of the following statements?   int x = 5;9 P: p4 L) U8 ?! I9 l& o
  int y = 4;
( z3 s- K- P- Q- n) p. x8 ~  y = x++;
" J+ L4 _) r# @! K  A 48 o+ s7 Z1 z& L; u
  B 5% ]. {7 v0 q: j- Q! T
  C 6
/ s, \; b9 }0 z# C+ v4 c5 @  D 7
5 S. ?/ {; i. f/ D% e8 I  Q56 Which of the following are valid main() methods?1 H; d& K' I6 d" q+ M9 A
  A public static void main() { }
$ Q. U3 a- m3 f( |  B public static void main(String[] args) { }
* |. w0 Q) C2 r3 ~; [; l& N0 l  C void main(String[] args) { }. g, ?8 D& F. N8 R1 Y+ v8 X
  D public static void m ain(String []args) { }
回复

使用道具 举报

 楼主| 发表于 2012-8-4 12:33:17 | 显示全部楼层

2011年JAVA认证模拟题(19)

</p>  Q57 What is wrong with the following statements:9 a7 G% H1 k! ^  G) {% ^$ W
  for(int i=0; i100) break;
) I) V) [5 s" |, s$ \! M* H. {( }# V
  if(x
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-6-11 00:07 , Processed in 0.302717 second(s), 24 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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