随笔分类 - Java多线程
摘要:以下均可以创建数组 A、float f[][] = new float[6][6]; B、float []f[] = new float[6][6]; C、float [][]f = new float[6][6]; D、float [][]f = new float[6][];
阅读全文
摘要:阅读如下代码。 请问,对语句行 test.hello(). 描述正确的有() package NowCoder; class Test { public static void hello() { System.out.println("hello"); } } public class MyApp
阅读全文
摘要:1、使用匿名内部类时,必须继承一个类或实现一个接口 2、匿名内部类由于没有名字,因此不能定义构造函数 3、匿名内部类中不能含有静态成员变量和静态方法
阅读全文
摘要:父类引用指向子类对象时候的一些注意点 首先看一段代码: public class Father { static int b=7; int a=5; public void say(){ System.out.println("父亲say"); } public void write(){ Syst
阅读全文

浙公网安备 33010602011771号