第一范文网 - 专业文章范例文档资料分享平台

南开17春学期《Java语言程序设计》在线作业 免费答案

来源:用户分享 时间:2025/5/21 21:22:28 本文由loading 分享 下载这篇文档手机版
说明:文章内容仅供预览,部分内容可能不全,需要完整文档或者需要复制内容,请下载word后使用。下载word有问题请添加微信号:xxxxxxx或QQ:xxxxxx 处理(尽可能给您提供完整文档),感谢您的支持与谅解。

法,要么使一个类实现Runnable接口并书写其中run()方法的方法体。 A. 错误 B. 正确 正确答案:B

2. Java的源代码中定义几个类,编译结果就生成几个以.class为后缀的字节码文件。 A. 错误 B. 正确 正确答案:B

3. Java源程序文件应以.java为后缀名保存,文件内包含几个类的定义就编译生成几个对应的字节码文件。 A. 错误 B. 正确 正确答案:B

4. Java的字符类型采用的是Unicode编码,但所占字节由具体软硬件环境决定。 A. 错误 B. 正确 正确答案:A

5. 由继承性可知,程序中子类拥有的成员数目一定大于等于父类拥有的成员数目。 A. 错误 B. 正确 正确答案:A

6. Java的类不允许多重继承,但接口支持多重继承。 A. 错误 B. 正确 正确答案:B

7. Java有两类程序:Java Application和Java Applet,其中Java Applet程序由嵌入到浏览器中的解释器解释运行。 A. 错误 B. 正确 正确答案:B

8. 构造函数用于创建类的实例对象,构造函数名应与类名相同,返回类型为void。 A. 错误 B. 正确 正确答案:A

9. Java的各种数据类型所占用的内存长度与具体软硬件环境有关 A. 错误 B. 正确 正确答案:A

10. Java语言中的数组元素只能是基本数据类型而不能为对象类型。 A. 错误 B. 正确 正确答案:A

11. Java语言中的数组元素下标总是从0开始,下标可以是整数或整型表达式。 A. 错误

B. 正确 正确答案:B

12. 在不同的软硬件平台上,Java的各种数据类型所占用的内存长度不同,因此程序的可移植性不强。 A. 错误 B. 正确 正确答案:A

13. 如果p是父类Parent的对象,而c是子类Child的对象,则语句p=c是正确的 A. 错误 B. 正确 正确答案:B

14. 在Java中%是取余运算符,要求两端操作数为整型。 A. 错误 B. 正确 正确答案:A

15. 无论Java源程序包含几个类的定义,若该源程序文件以B.java命名,编译后生成的都只有一个名为B.class的字节码文件。 A. 错误 B. 正确 正确答案:A

16. 在Java中对象可以赋值,只要使用赋值号(等号)即可,相当于生成了一个各属性与赋值对象相同的新对象。 A. 错误 B. 正确 正确答案:A

17. 构造方法是一种特殊的方法,名字与类名一致,但返回类型都为void型。 A. 错误 B. 正确 正确答案:A

18. Java程序里,创建新的类对象用关键字new,回收无用的类对象使用关键字free。 A. 错误 B. 正确 正确答案:A

19. 若Java源程序中包含了几个类的定义,则编译后就生成对应的几个字节码文件。 A. 错误 B. 正确 正确答案:B

20. 在异常处理中总是将可能产生异常的语句放在try块中,用catch子句去处理异常,而且一个try块之后只能对应一个catch语句。 A. 错误 B. 正确 正确答案:A

When you are old and grey and full of sleep, And nodding by the fire, take down this book, And slowly read, and dream of the soft look Your eyes had once, and of their shadows deep; How many loved your moments of glad grace, And loved your beauty with love false or true, But one man loved the pilgrim soul in you, And loved the sorrows of your changing face; And bending down beside the glowing bars, Murmur, a little sadly, how love fled And paced upon the mountains overhead And hid his face amid a crowd of stars.

The furthest distance in the world

Is not between life and death But when I stand in front of you Yet you don't know that I love you.

The furthest distance in the world Is not when I stand in front of you Yet you can't see my love

But when undoubtedly knowing the love from both Yet cannot be together.

The furthest distance in the world Is not being apart while being in love But when I plainly cannot resist the yearning Yet pretending you have never been in my heart. The furthest distance in the world Is not struggling against the tides But using one's indifferent heart To dig an uncrossable river For the one who loves you.

南开17春学期《Java语言程序设计》在线作业 免费答案.doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
本文链接:https://www.diyifanwen.net/c14euh4aw4x77xpo5846y5ap1c1kz8f00qa6_2.html(转载请注明文章来源)
热门推荐
Copyright © 2012-2023 第一范文网 版权所有 免责声明 | 联系我们
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ:xxxxxx 邮箱:xxxxxx@qq.com
渝ICP备2023013149号
Top