英文北京东方国信java面试
20页1、1Part (每题(每题 1 1 分)分)1)Which of the following lines will compile without warning or error? Select all valid answers. a ea) float f=0; b) char c=“0“; c) byte b=157; d) boolean f=null; e) int i=10; 2)What are the valid types for the given variable i ? cpublic class Base private void test() / i = 1; switch (i) static public void main(String a) new Base().test(); Select most appropriate answer. a) char, int b) boolean, byte, char, short, int c) byte, char, short, int d) byte, char, short, int, long
2、e) Only int3)What is the correct way of declarating main() so that the progarm can be compiled and executed using this entry point. abcfa) static public void main(String args) b) static public void main(String a) c) public static void main(String a) d) static void public main(String a) e) public void main(String a) f) static public void main(char arg)24)What will be output if the program is executed as belowjava -DOne -DTwo -DThree Sample public class Sample public static void main(String argv)
3、System.out.println(argv2) Select most appropriate answer. b a) One b) Two c) Three d) Exception raised: “java.lang.ArrayIndexOutOfBoundsException: 2“ e) NonePart (每题(每题 1 1 分)分)5)Abstract method cannot be static. True or False ? truea) True b) False6)What will be the output when you compile and execute the following program. d/ class Base void test() System.out.println(“Base.test()“); / public class Child extends Base void test() System.out.println(“Child.test()“); static public void main(String
4、 a) Child anObj = new Child(); Base baseObj = (Base)anObj;3/Base b=new Child(); /b.test(); baseObj.test(); Select most appropriate answer. a) Child.test() Base.test() b) Base.test() Child.test() c) Base.test() d) Child.test()7)What will be the output when you compile and execute the following program. C / class Base static void test() System.out.println(“Base.test()“); / public class Child extends Base void test() System.out.println(“Child.test()“); Base.test(); /Call the parent method static pu
《英文北京东方国信java面试》由会员wt****50分享,可在线阅读,更多相关《英文北京东方国信java面试》请在金锄头文库上搜索。
高电压技术 第一章第四节 起始电压与气压的关系
风湿免疫病的新认识与新进展
频数分布表与频数分布直方图1
青岛版九上1.1《平行四边形及其性质》(1)
集团整体业务群的战略安排
金钱_共同面对的话题71171
重要有机物的制备
重性精神疾病的防治培训
酵母醇脱氢酶的提取及专一性测定
高二选修(溶液的酸碱性)2010hy
高二生物必修3《生态系统的物质循环》课件
高一数学集合的基本关系
陈-从梯子的倾斜程度谈起(2)
阿卡宁衍生物合成产物中乙酰胆碱酯酶抑制剂的筛选 -
课题1 海带中碘元素的分离及检验
说不尽的桥课件1
语法--英语词性分类及用法
记忆与知识的储存
解读“引起近视的其它原因”
计算机算法设计与分析(第3版)第2章
2024-03-05 77页
2024-03-05 50页
2024-02-29 54页
2024-02-29 75页
2024-02-29 52页
2024-02-29 54页
2024-02-29 125页
2024-02-29 74页
2024-02-29 61页
2024-02-29 56页