题目详情
单选题 What is the output of the following code: double x = 5.5; int y = (int)x; System.out.println("x is " + x + " and y is " + y)
A. x is 5 and y is 6
B. x is 6.0 and y is 6.0
C. x is 6 and y is 6
D. x is 5.5 and y is 5

学科:Java程序设计-非计算机
时间:2023-06-18 05:09:11
相关题目
相关作业
