收藏 分享(赏)

JAVA小问题.ppt

上传人:kpmy5893 文档编号:7069871 上传时间:2019-05-05 格式:PPT 页数:8 大小:72KB
下载 相关 举报
JAVA小问题.ppt_第1页
第1页 / 共8页
JAVA小问题.ppt_第2页
第2页 / 共8页
JAVA小问题.ppt_第3页
第3页 / 共8页
JAVA小问题.ppt_第4页
第4页 / 共8页
JAVA小问题.ppt_第5页
第5页 / 共8页
点击查看更多>>
资源描述

1、Chapter 2continuing,More Control Structures,Quiz #1,close your books and clear off your deskwrite your name in (pin yin and han zi), student number and Quiz # 1you will get a zero if you look at your neighbors areaif you continue to write, when I tell you to stop,Quiz,1.) The same Java program once

2、compiled can run on many different types of machines or Operating System. How?2.) Using for each loops calculate the total of all the numbers stored in this array:int nums 3.) What is the problem with the = = operator?,Quiz Answer,1.) The same Java program once compiled can run on many different typ

3、es of machines or Operating System. How?JVM (Java Virtual Machine) will translate the object code into code acceptable to the machine or OS,Quiz Answer,2.) Using for each loops calculate the total of all the numbers stored in this array: int nums for ( int arr : nums )for ( int i : arr )total += i;,Quiz Answer,3.) What is the problem with the = = operator?When used with reference variables, it will only check to see if they are “pointing” to the same object.it will not check to see if the objects are equal.,

展开阅读全文
相关资源
猜你喜欢
相关搜索
资源标签

当前位置:首页 > 网络科技 > Java

本站链接:文库   一言   我酷   合作


客服QQ:2549714901微博号:道客多多官方知乎号:道客多多

经营许可证编号: 粤ICP备2021046453号世界地图

道客多多©版权所有2020-2025营业执照举报