JSP的9个内置对象是:out、request、response、page、pageContext、session、application、exception、config。要注意对象名的大小写
What results from attempting to compile and run the following code? public class Ternary{ public static void main(String args[]){ int a = 5; System.out.println("Value is - " + ((a < 5) ? 9.9 : 9)); } }
应该输出 Value is -9.0
((a < 5) ? 9.9 : 9) 这里因为前面的 9.9是 double类型的,所以后面的9也会被转换为double类型的进行输出
语句int i=3.2;说法 错误
编译错误,浮点数不能自动转化为整数
10万+

被折叠的 条评论
为什么被折叠?



