- 1
- 2
- 3
- 4
- 5
100家大公司java笔试题汇总
资料介绍
100家大公司java笔试题汇总
Java考试题
一:单选题
1. 下列哪一种叙述是正确的(D )
A. abstract修饰符可修饰字段、方法和类
B. 抽象方法的body部分必须用一对大括号{ }包住
C. 声明抽象方法,大括号可有可无
D. 声明抽象方法不可写出大括号
2. 如下代码
public class Test {
public int aMethod() {
static int i = 0;
i++;
return i;
}
public static void main (String args[]) {
Test test = new Test();
test.aMethod();
int j = test.aMethod();
System.out.println(j);
}
}
输出结果是什么? D
A. 0
B. 1
C. 2
D. 编译失败
3. 下列哪种说法是正确的( D)
A. 实例方法可直接调用超类的实例方法
B. 实例方法可直接调用超类的类方法
C. 实例方法可直接调用其他类的实例方法
D. 实例方法可直接调用本类的类方法
如下代码:
class Super {
public Integer getLenght() { return new Integer(4); }
}
public class Sub extends Super {
public Long getLenght() { return new Long(5); }
public static void main(String[] args) {
Super sooper = new Super();
Sub sub = new Sub();
System.out.println(sooper.getLenght().toString() + "," +
sub.getLenght().toString() );
}
部分文件列表
| 文件名 | 大小 |
| 100家大公司java笔试题汇总.doc | 1M |
最新上传
-
zhengdai 打赏1000.00元 3天前
资料:STM32IAP使用说明
-
gsy幸运 打赏955.00元 3天前
资料:STM32IAP使用说明
-
小猫做电路 打赏855.00元 3天前
资料:STM32IAP使用说明
-
21ic小能手 打赏310.00元 3天前
用户:zhengdai
-
21ic小能手 打赏320.00元 3天前
用户:liqiang9090
-
21ic小能手 打赏310.00元 3天前
用户:gsy幸运
-
21ic小能手 打赏270.00元 3天前
用户:jh03551
-
21ic小能手 打赏240.00元 3天前
用户:小猫做电路
-
21ic小能手 打赏210.00元 3天前
用户:w178191520
-
21ic小能手 打赏90.00元 3天前
用户:kkfjenui
-
21ic小能手 打赏60.00元 3天前
用户:liao6
-
21ic小能手 打赏60.00元 3天前
用户:w1966891335
-
21ic小能手 打赏90.00元 3天前
用户:jh0355
-
21ic小能手 打赏30.00元 3天前
用户:xuzhen1
-
21ic小能手 打赏30.00元 3天前
用户:sun2152
-
21ic小能手 打赏50.00元 3天前
用户:xzxbybd
-
21ic小能手 打赏50.00元 3天前
用户:mulanhk
-
21ic小能手 打赏20.00元 3天前
用户:x15580286248
-
21ic小能手 打赏15.00元 3天前
用户:w993263495
-
21ic小能手 打赏30.00元 3天前
用户:玉落彼岸
-
21ic小能手 打赏20.00元 3天前
用户:铁蛋锅
-
21ic小能手 打赏10.00元 3天前
用户:zmcch
-
21ic小能手 打赏10.00元 3天前
-
21ic下载 打赏1.00元 3天前
用户:zzcyolo
-
21ic下载 打赏1.00元 3天前
用户:玉落彼岸
-
21ic小能手 打赏10.00元 3天前
-
21ic小能手 打赏10.00元 3天前
-
21ic小能手 打赏10.00元 3天前
-
sdqdjqk 打赏1.00元 3天前
-
21ic小能手 打赏10.00元 3天前
-
wisdomlin 打赏1.00元 3天前
-
21ic小能手 打赏10.00元 3天前
-
799902619 打赏1.00元 3天前
资料:新立新龙软件
-
21ic小能手 打赏10.00元 3天前
-
21ic小能手 打赏10.00元 3天前
-
21ic小能手 打赏10.00元 3天前
-
21ic小能手 打赏10.00元 3天前
-
21ic小能手 打赏10.00元 3天前
-
21ic小能手 打赏10.00元 3天前
-
21ic小能手 打赏10.00元 3天前




全部评论(0)