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

最近更新

2025年泉州华光职业学院单招职业适应性测试题.. 126页

2025年河南省郑州市单招职业适应性测试题库及.. 128页

2025年河南省平顶山市单招职业适应性测试题库.. 125页

2025年河南水利与环境职业学院单招职业倾向性.. 129页

2025年河南工业职业技术学院单招职业技能测试.. 128页

西方经济学2供需理论p 95页

2025年河北能源职业技术学院单招职业技能测试.. 127页

航空航天器材配送协议3篇 52页

航空燃油供应运输合同5篇 84页

2025年河北司法警官职业学院单招职业倾向性测.. 128页

航海导航液氨配送服务协议3篇 53页

2025年沈阳职业技术学院单招职业倾向性测试题.. 127页

2025年江西航空职业技术学院单招职业适应性测.. 125页

药学院毕业论文选题 7页

美食餐饮居间协议模板3篇 47页

2025年江西新能源科技职业学院单招职业适应性.. 125页

美术馆装修用工协议3篇 49页

2025年江西冶金职业技术学院单招职业技能测试.. 127页

2025年江苏省镇江市单招职业适应性测试题库学.. 124页

硅胶柱层析技术 32页

2025年江苏电子信息职业学院单招职业技能测试.. 130页

2025年江苏安全技术职业学院单招职业适应性测.. 124页

2025年江苏医药职业学院单招职业倾向性测试题.. 130页

2025年武汉警官职业学院单招职业倾向性测试题.. 126页

2025年枣庄职业学院单招职业适应性测试题库及.. 131页

2025年5篇甘肃五泉山的导游词 18页

2025年昭通卫生职业学院单招职业适应性测试题.. 132页

2024年安全知识竞赛题100题及答案 13页

国有企业破产清算工作方案 5页

分项工程报价单——脚手架工程(6.1) 5页