样卷-.NET工程师岗位教案.pdfVIP

  • 6
  • 0
  • 约9.21千字
  • 约 8页
  • 2017-06-09 发布于湖北
  • 举报
全国服务外包岗位专业考试.NET 开发工程师 (参考样卷) 1、What will happen when you attempt to compile and run the following code? public class Static { static { int x = 5; //在静态块范围内有效 } } } static int x,y; //int 的初始化为0 public static void main(String args[]) { x-- ; //x == -1 myMethod(); System.out.println(x + y + ++x); } } public static void myMethod() { y = x++ + ++x; // y = -1 + 1,运算后 x == 1 } } } A.prints : 2 B.prints : 3 C.prints : 7 D.prints : 8 2、If the read records from a database, what methods you can

文档评论(0)

1亿VIP精品文档

相关文档