编译 运行下面代码将发生() class Test{ sataic int mtArg=1; public static void main(String[]

大学网课 已帮助 人

编译、运行下面代码将发生() class Test{ sataic int mtArg=1; public static void main(String[] args){ int myArg; System.out.println(myArg); } }

A.代码被编译,运行时输出0

B.代码被编译,运行时输出1

C.编译错,因为局部变量和类变量有相同的名字

D.编译错,因为局部变量在使用之前没有被初始化

编译 运行下面代码将发生() class Test{ sataic int mtArg=1; public static void main(String[]

热搜:c语言源代码可以不经过编译而被计算机直接运行