- 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笔试_深圳易思博
[考试说明:本试卷为深圳易思博选人的试题,学员不得带走]
一、选择题(2分/题)
1、根据这个类选择所有正确的内部类:(多选)
class A {
protected int I;
A(int i){
This.i=I;
}
}
a.
class B{
} b.
class B extends A{
} c.
class B{
B(){
System.out.println(“i=”+1);
}
} d.
class S{
class A{
}
} e.
class A{
}
2、下列所给出的声明中,什么会写入标准输出中?(单选)
System.out.println(4|7)?
a.4 b.5 c.6 d.7 e.0
3、下列有关方法notify()(用于和wait()连接)的正确描述是:(单选)
a. if there is more than one thead waiting on a condition,only the thread that has been waiting the longest is notified.
b. if there is more than one thead waiting on a condition,there is no way to predict which thread will be notified.
c. Notify() is defined in the Thread class.
d. It is notstrictly necessary to own the lock for the object you invoke notify() for.
e. Notify() should only be invoked form within a while loop.
4、给出下列类的定义,如没有其他实例的引用,method2()能直接访问到:(多选)
class A {
public int x;
private int y;
class B {
protected void method1(){
}
class C {
privated void method2()
{
}
}
}
}
class d axtends A{
public float z;
}
a. The variable x defined in A
b. The variable y defined in A
c. Method() defined in B
d. The variable z defined in d
5、你有一个用ISO 8859-8定义的8位字符串文档,当你要在文本域中写一个显示该文档的应用,而局部编码已经设置成ISO 8859-8时,你如何写一段代码来读取该文档的第一行? (你有3个可获取的变量)
a. InputStreamReader reader=new InputStreamReader(stream,"8859-8");
BufferedReader buffer=new BufferedReader(reader);
S=buffer.readLine();
b. InputStreamReader reader=new InputStreamReader(stream);
BufferedReader buffer=new BufferedReader(reader);
S=buffer.readLine();
c. InputStreamReader reader=new InputStreamReader(myfile,"8859-8");
BufferedReader buffer=new BufferedReader(reader);
S=buffer.readLine();
d. InputStreamReader reader=new InputStreamReader(myfile);
BufferedReader buffer=new BufferedReader(reader);
S=buffer.readLine();
e. FileReader reader=new FileReader(myfile);
BufferedReader buffer=new BufferedReader(reader);
S=buffer.readLine();
6、哪一个对单机程序中的main()方法的声明是错误的?(多选)
a. public static void main()
b. public static void main(Stri
您可能关注的文档
最近下载
- 历史:第4课 经济大危机 课件(人教版九下) (13).ppt VIP
- 上海工程技术大学2020-2021学年度第1学期《概率论与数理统计》期末考试试卷(A卷)及参考答案.docx
- 大理石项目可行性研究报告(参考).docx
- 斜拉桥特大桥监理细则.pptx
- 短视频制作项目教程 课件全套 徐鉴 项目1--7 全面认识短视频 ---原创短视频制作.pptx
- 盆底重建术后护理查房.pptx VIP
- 1.医院社区卫生服务中心全员安全生产责任制(范本).pdf VIP
- 血液灌流采用甲磺酸萘莫司他的抗凝使用.docx VIP
- 原料物性表原料物性表.pdf VIP
- 1.社区卫生服务中心全员安全生产责任清单(完整版).pdf
文档评论(0)