9.给出以下代码 请问该程序的运行结果是什么? class Example{ public static void main(String

大学网课 已帮助 人

"9.给出以下代码,请问该程序的运行结果是什么? class Example{ public static void main(String args[]){ boolean flag=false; if(flag=true){ System.out.println("false"); } else{ System.out.println("true"); } } }"

A.代码编译失败,if语句错误。

B.代码编译成功,但在运行期时if语句处抛出异常。

C.输出true。

D.输出false。

9.给出以下代码 请问该程序的运行结果是什么? class Example{ public static void main(String

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