1 / 11
文档名称:

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

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

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

分享

预览

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

上传人:miaoshen1985 2021/12/2 文件大小:43 KB

下载得到文件列表

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

相关文档

文档介绍

文档介绍: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年汕头职业技术学院单招职业倾向性测试题.. 60页

2025年汕头职业技术学院单招职业倾向性测试题.. 64页

2025年游园会活动策划书 47页

2025年游后感作文实用(4篇) 3页

2025年游后感作文300字经典[4篇] 3页

2025年汕尾职业技术学院单招职业适应性测试题.. 61页

2025年汕尾职业技术学院单招职业适应性测试题.. 60页

2025年汝州职业技术学院单招职业适应性测试题.. 63页

2025年江南影视艺术职业学院单招职业技能测试.. 61页

2025年江南影视艺术职业学院单招职业适应性测.. 61页

2025年江汉艺术职业学院单招职业技能测试题库.. 62页

2025年江海职业技术学院单招职业适应性测试题.. 61页

2025年温馨青年节祝福语集合46条 5页

2025年江苏信息职业技术学院单招职业倾向性测.. 63页

2025年温馨重阳节祝福语短信汇总63条 6页

2025年江苏信息职业技术学院单招职业技能测试.. 62页

2025年江苏农林职业技术学院单招职业倾向性测.. 63页

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

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

亚马逊邮件模板综述 55页

实验三组合逻辑电路multisim仿真设计 3页

重性精神疾病信系息统操作 46页

灭菌柜异常情况处理手册 12页

安全培训入场安全教育内容 4页

朗文当代词典第6版核心词汇9000 1页

《GBT20014良好农业规范系列标准》(DOC 48页.. 46页

生物柴油65644 2页