1 / 11
文档名称:

南宁java培训java基础(易唐).docx

格式:docx   大小:16KB   页数:11页
下载后只包含 1 个 DOCX 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

南宁java培训java基础(易唐).docx

上传人:taoapp 2021/11/16 文件大小:16 KB

下载得到文件列表

南宁java培训java基础(易唐).docx

相关文档

文档介绍

文档介绍:JAVASE 部分
1、Choose the three valid identifiers from those listed below. (Choose three)?
A. IDoLikeTheLongNameClass B. $byte
C. constD. _ok E. 3_case
2、Which of the following lines of code will compile without error (Choose two)?
A.
int i=0;
if (i) {
(“Hi”);
}
B.
boolean b=true;
boolean b2=true;
if(b= =b2) {
(“So true”);
}
C.
int i=1; int
j=2; if(i= =1||
j= =2)
(“OK”);
D.
int i=1;
int j=2;
if (i==1 &| j==2)
(“OK”);
3、Which two demonstrate a "has a" relationship(Choose two)?
A. public interface Person { }
public class Employee extends Person{ }
B. public interface Shape { }
public interface Rectandle extends Shape { }
C. public interface Colorable { }
public class Shape implements Colorable
{ }
D. public class Species{ }
public class Animal{private Species species;}
E. interface Component{ }
class Container implements Component{
private Component[] children;
}
4、What will happen when you attempt to compile and run the following code?
public class Static{
static {
int x = 5;
}
static int x,y;
public static void main(String args[]){
x--;
myMethod();
(x + y + ++x);
}
public static void myMethod(){
y = x+++++x;
}
}
error : 1 : 2
: 3 : 7 : 8
5 、 What is the correct ordering for the import, class and package declarations when found in a single file?
A. package, import, classB. class, import, packageC. import, package, classD. package, class, import
6、What will happen when you attempt to compile and run the following code.
public class Pvf{
static boolean Paddy;
public static void main(String
argv[]){ (Paddy);
}
}
A. Compile time error B. compilation and output of false
C. compilation and output of true D. compilation and output of null
7、Given the folowing classes whic

最近更新

过敏性紫癜病人的观察与护理 25页

2025年艺术考察心得体会范文(精选篇) 41页

类风湿关节炎专题知识培训专家讲座 39页

网店现状描述范文如何写啊(九篇) 22页

2025年度交通事故快速理赔一次性赔偿协议书 8页

循证医学和心血管病临床指南 54页

2025年度互联网企业股权转让协议终止及重组合.. 8页

2024武术年终总结(模板9篇)word模板范文 15页

设计心理学感觉知觉与视知觉 52页

给新生指路(九篇) 22页

2025年度二零二五年度退租住宅租赁合同终止及.. 8页

智能穿戴设备与非接触支付结合-洞察阐释 42页

苏教版六年级下册学会合作课件 149页

2025年自我评价的作文800字(锦集20篇) 31页

2025年度二零二五年度生态旅游项目连带责任保.. 10页

2025年度二零二五年度父母无偿赠与子女唯一住.. 9页

2025年度二零二五年度海鲜产业园区合作经营协.. 10页

胸大肌训练对耐力运动表现影响-洞察阐释 29页

精选肯德基实习经历范文(3篇) 6页

2025年度二零二五年度商业地产铺面出租及商业.. 9页

2025年度二零二五年度专业赛事赛车租赁合同 10页

2025年度个性化礼品印刷品订货协议 10页

篮球场护栏安装(5篇) 7页

2024年厦门东海职业技术学院单招综合素质考试.. 54页

2024年四川司法警官职业学院单招职业适应性测.. 58页

2024年安徽国防科技职业学院单招职业倾向性测.. 55页

2024年山西信息职业技术学院单招职业倾向性测.. 55页

2024年广州科技贸易职业学院单招职业技能测试.. 55页

2024年民办四川天一学院单招职业适应性考试必.. 55页

矿权转让合同书(2025版) 15页