- 1、本文档共17页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
《java语言程序设计》期末考试模拟试题(Java programming language final exam simulation questions)
《java语言程序设计》期末考试模拟试题(Java programming language final exam simulation questions)
JAVA programming language final exam simulation questions
(applicable: 99 level computer major)
June 2001
A single choice (2 points per day, a total of 10 points)
1. Compiling the Java Application source file will produce the corresponding bytecode file, whose extension is ().
A..Java B..Class
C..Html D..Exe
2, let x = 1, y = 2, z = 3, then the expression y + = Z - / + + X is the value of ().
A. 3 B. 3.5
C. 4 D. 5
3, in the Java Applet program user-defined Applet subclass, generally need to overload the parent class () method to complete some drawing operations.
A., start (), B., stop ()
C., init (), D., paint ()
4 、 the access control characters that are not allowed as members of a class and class are ().
A. public B. private
C. static D. protected
5, a method for writing an AB class without a formal parameter without return value. Method writes the method head so that it can be called using the class name AB as a prefix, which is in the form of ().
A., static, void, method (), B., public, void, method ()
C., final, void, method (), D., abstract, void, method ()
Two, fill in the blanks (1 points per space, 20 points)
1, the development and operation of Java procedures need to go through three main steps for,
Sum.
2, if a Java Applet source program files define only one class, the class name is MyApplet, then the class must be a subclass of MyApplet and stores the source program file name.
3, if there are 3 classes defined in a Java Applet program file, use Suns JDK compiler
The compiler compiles the source file to produce a byte code file whose name is the same as that of the class name.
4. In the basic data types of Java, char uses the Unicode encoding scheme, each Unicode code occupies
Using bytes of memory space, so that both Chinese characters and English characters are accounted for
Byte memory space.
5, x = 2, then the value of the expression (x + +) / 3 is.
6, if x = 5,
Y = 10, x
您可能关注的文档
- linux操作系统下以不同颜色命名的文件类型(A file type named under different colors in the Linux operating system).doc
- linux查看cpu(Linux view CPU).doc
- linux配置iptables防火墙(Linux configure the iptables firewall).doc
- linux防火墙基本知识(Basic knowledge of Linux Firewall).doc
- list控件(List control).doc
- looknstop防火墙(Looknstop firewall).doc
- led工艺初步介绍(led工艺初步介绍).doc
- love forever歌词(永远的爱歌词).doc
- low carboon life(低碳生活).doc
- mac地址修改大法(MAC address modification method).doc
文档评论(0)