- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
北方基地java月考题(Northern base Java month exam)
北方基地java月考题(Northern base Java month exam)
1.
1. import java.util. ;
2. class keymaster {
3. public int i;
4. (i) public keymaster (this.i = i}
5. public boolean equals (object o) {return (i = (keymaster) (o) (;)
6. public int {- 1 hashcode ();)
7. }
8. public class mapit {
9. public static void main (string [] args) {
10. set (set keymaster = new hashset keymaster ().
11. keymaster k1 = new keymaster (1);
12. keymaster k2 = new keymaster (2);
13. set.add (k1); set.add (k1).
14. set.add (k2); set.add (k2).
15. system.out.print (set.size) + (:);
16. k2.i = 1;
17. system.out.print (set.size) + (:);
18. set.remove (k1).
19. system.out.print (set.size) + (:);
20. set.remove (k2).
21. system.out.print (set.size ());
22. }
23. }
what is the result?
a. 4: 4: 2: 2
b: 4: 3: 2
v. 2: 2: 0
d 2: 2: 0: 0
e: 0: 0: 1
- 2: 2: 1: 1
g. 4: 3: 2: 1.
2.
对象b最早在以下哪个选项前被垃圾回收?
public class q76a9 {
static string f () {
string a = hello;
string b = byte.
string c = b + ! / / / / / / / / plant.
string s = b;
b = a; / / lineb
d = a; / / linec
return c; / / lined
}
public static void main (string [] args) {
string msg = f ().
system.out.println (msg).
}
}
(a) (b) (c) linec linea) lineb lined
3.
下列那个语句放入 / position1中会导致该程序编译错误?
public class example {
int a, int b = 0.
static int c;
public void m () {
int d; int e = 0.
/ / / / / / / / / / / / / / position1
}
}
(a) a + b + +, (b) and (c) (d) of the c + + + + + + +).
4.
int i = 1.
(i) switch
{
box 1:
system.out.println (zero).
break;
box 1:
system.out.println (one).
box 2:
system.out.println (two).
break;
default:
system.out.println (default).
}
(a) one, two, one, (b) default c) one, two, default (d) default
5.
下面哪个是正确的类声明? 假设每一段文字都做为一个名称为fred.java的文件的全部内容?
(a).
public class fred {
public int x = 0.
public int (x) {-
this.x = x;
}
}
(b).
public class fred {
public int x = 0.
public int (x) {-
this.x = x;
}
}
(c).
public class fred extends mybaseclass, myotherbaseclass {
public int x = 0.
fred (int value) (public
x = value;
}
}
(d).
protected class
您可能关注的文档
- kiss×kiss collections vol.10「フラワーーキス」(Kiss×kiss collections Vol. 10 フラワーーキス. ).doc
- lcd1602液晶显示电子时钟(LCD1602 liquid crystal display electronic clock).doc
- led应用技术知识培训(LED application technology knowledge training).doc
- lighters中英双文(打火机中英双文).doc
- kpi绩效量化考核落地实施11480(KPI performance quantitative assessment landing implementation 11480).doc
- linux 字符串转换篇(Linux string conversion chapter).doc
- linux rpm卸载参数(Linux RPM uninstall parameters).doc
- linux 下svn图形客户端smartsvn 安装(Svn graphical client smartsvn installation under Linux).doc
- linux下解压命令大全 - eoiioe - 博客园(Linux decompression command Daquan - eoiioe - blog).doc
- linux下载文件命令(Linux download file command).doc
- 北方狼 .南下(Northern wolf. Go south).doc
- 半小时学会做外贸(想做外贸的朋友一定要看)(Half an hour to learn how to do foreign trade (want to do foreign trade friends must see)).doc
- 单元主题海洋和陆地的变迁(Unit 1 changes in the oceans and lands).doc
- 单反拍摄技巧(SLR shooting skills).doc
- 单片机c语言_1602液晶显示器上显示24c02储存数据(Singlechip c language, _1602 LCD display, 24C02 storage data).doc
- 单片机显示(Singlechip display).doc
- 单片机计算器(Singlechip calculator).doc
- 单片机项目教学研究及实践_胡敬朋(SCM project study and practice of teaching _ Hu Jingpeng).doc
- 单片机设计简易正弦波发生器(Simple sine wave generator designed by single chip microcomputer).doc
- 单词背后的故事194个英语单词的起源及巧记方法2(The story behind the word the origin and clever recording of 194 English words 2).doc
最近下载
- 2×50吨全膜法超纯水设备技术方案新.pdf VIP
- cx-SSE喷涂速凝橡胶沥青防水涂料建筑构造---L15JT56.pdf VIP
- 中国中铁建筑施工典型异常工况安全处置工作指引考试题有答案.docx
- 施乐 DocuColor 5000 5000AP 彩色数码印刷机英文维修手册.pdf VIP
- 施乐 DW 3030 6204 6604 6605 工程机中文维修手册.pdf VIP
- 2025年装载机岗位操作手册.docx VIP
- 绿化管理制度.docx VIP
- 22S804 矩形钢筋混凝土蓄水池.docx VIP
- JY_T0620-2019初中化学教学装备配置标准.pdf VIP
- 施乐 WorkCentre 7830 7835 7845 7855 Family复印机中文维修手册.pdf VIP
文档评论(0)