IT公司Java笔试题.docVIP

  • 13
  • 0
  • 约3.22万字
  • 约 33页
  • 2018-01-05 发布于河南
  • 举报
IT公司Java笔试题

IT企业Java笔试题 一, 选择题 下列数组初始化正确的是:C A int[5] a= {1,2,3,4,5}; B int[2][2] a = {{1,2},{3,4}}; C int[][] a = {{2,3,4,5},new int[3]}; D int[][] a = new int[][5]; 下面的程序名为Student.java:B public class Student { private String name; public Student(String s_name) //1 { name = s_name; //2 } public static void main(String args[]) { Student s = new Student(); //3 } } 使用如下指令编译: javac Student.java 将会得到什么结果? A. 将会顺利通过编译,并将产生一个Student.class的类文件。 B. 编译时在//3处出错。 C. 编译时在//2处出错。 D. 编译时在//1处出错。 关于下述程序:C public class Divide { public static void main(String args[]) { System.out.println(17.0/

文档评论(0)

1亿VIP精品文档

相关文档