为了账号安全,请及时绑定邮箱和手机立即绑定

Java Type Promotion的源代码在哪里以及如何调试

Java Type Promotion的源代码在哪里以及如何调试

明月笑刀无情 2021-10-13 16:30:37
我基本上是想调试下面的Type Promotion代码来理解为x创建的临时double变量。我怎样才能做到这一点?public class TypePromotion {public static void main(String args[]){    int x = 10;    double y = 20.0;    double z = x + y;    System.out.println("value of Z is :: "+z); // outputs 30.0    System.out.println("value of X is :: "+x); // outputs 10}}
查看完整描述

1 回答

  • 1 回答
  • 0 关注
  • 137 浏览

添加回答

举报

0/150
提交
取消
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号