a我考网

 找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 110|回复: 0

[考试试题] 2012JAVA试题:JAVA面试试题及答案12

[复制链接]
发表于 2012-8-4 12:33:16 | 显示全部楼层 |阅读模式
分析以下代码,编译时出现什么现象: The local variable myArg may not have been initialized+ m; {, Q; y, K& |
public class Test {
, ^) _7 F5 K1 k- `! Xstatic int myArg = 1;! P" c$ @; z. M* R# Q
public static void main(String[] args) {
6 i1 E7 Q% [. H! v/ e0 G6 Tint myArg;. B$ ^* x8 O; S1 J6 S+ ]9 _& G- j
System.out.println(myArg);
7 ?4 R* J0 f: A1 O' Y}
0 `7 c2 i0 U- W) }# o! f1 k$ |}
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-6-18 17:42 , Processed in 0.348381 second(s), 22 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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