当前位置:SCJP程序员认证考试题库

问题:

[单选]

What will be the result of attempting to compile and run the following code?()  
public class Q6b0c {  
public static void main(String args[]) { 
int i = 4; 
float f = 4.3;  
double d = 1.8;  
int c = 0;  
if (i == f) c++;  
if (((int) (f + d)) == ((int) f + (int) d))
 c += 2; 
 System.out.println(c); 
 }  
}  

A . The code will fail to compile.
B . 0 will be written to the standard output.
C . 1 will be written to the standard output.
D . 2 will be written to the standard output.
E . 3 will be written to the standard output.

在版画的制作中,哪种拓印的方法比较适合幼儿的制作?为什么? 根据《民用建筑工程室内环境污染控制规范》的规定,()主要来源于混凝土防冻剂等外加剂及防火板中的阻燃剂等。 苯。 甲醛。 氡。 氨。 从SEO角度怎么解读微博里的短链接?() 301跳转目标网页。 302跳转到目标网页。 就是一个真实的目标网页链接。 先跳到微博上再跳到目标网页上。 证据是否(),是审查判断证据的核心。 确实。 充分。 合法。 完整。 可信。 天气学

What will be the result of attempting to compile and run the following code?()  
public class Q6b0c {  
public static void main(String args[]) { 
int i = 4; 
float f = 4.3;  
double d = 1.8;  
int c = 0;  
if (i == f) c++;  
if (((int) (f + d)) == ((int) f + (int) d))
 c += 2; 
 System.out.println(c); 
 }  
}  

参考答案:

  参考解析

本题暂无解析

在线 客服