题海让大学四年没有难题
白天模式登陆

题目详情

单选题 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程序设计-非计算机课程封面

学科:Java程序设计-非计算机

时间:2023-06-18 05:09:11

Copyright © 2022 津ICP备2021001502号