湖北点开新传媒有限公如司面试题.docVIP

  • 4
  • 0
  • 约5.44千字
  • 约 6页
  • 2016-12-26 发布于湖南
  • 举报
湖北点开新文化传媒有限公司面试题 1.写出以下代码的输出结果: public class TestTest { static String field1 = A1; String field2 = A2; static{ System.out.println(field1); System.out.println(A3); } { System.out.println(field2); System.out.println(A4); } public TestTest(){ System.out.println(A5); } public static void main(String[] arg0){ new TestTest(); } } 2. 以下代码一共定义了几个变量: String str1=”abc”; String str2=”abc”; String str3=”ab”+”cd’; 3.写出以下代码的输出结果: public class TestBoolean { private boolean bool = true; public void method(boolean bool){ bool = false; } public void change(boolean

文档评论(0)

1亿VIP精品文档

相关文档