- 51
- 0
- 约1.29万字
- 约 15页
- 2016-04-11 发布于湖北
- 举报
Java软件工程师试卷B(2014)
考生必读:请勿在本试卷中涂写,答案写在答题卷中
考试时间90分钟
选择题(每题2分)
JAVA/JSP编程部分
Given:public class Pass { public static void main(String [] args) { int x = 5; Pass p = new Pass(); p.doStuff(x); System.out.print(” main x = “+ x); } void doStuff(int x) { System.out.print(” doStuff x = “+ x++); }}What is the result?A. Compilation fails.B. An exception is thrown at runtime.C. doStuffx = 6 main x = 6D. doStuffx = 5 main x = 5E. doStuffx = 5 main x = 6F. doStuffx = 6 main x = 5
Given:class TestA { public void start() { System.out.println(”TestA”); }}public cla
原创力文档

文档评论(0)