随笔分类 -  Java多线程

摘要:Java中的关键字 阅读全文
posted @ 2021-08-25 16:32 fridays 阅读(19) 评论(0) 推荐(0)
摘要:以下均可以创建数组 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][]; 阅读全文
posted @ 2021-08-25 16:27 fridays 阅读(131) 评论(0) 推荐(0)
摘要:阅读如下代码。 请问,对语句行 test.hello(). 描述正确的有() package NowCoder; class Test { public static void hello() { System.out.println("hello"); } } public class MyApp 阅读全文
posted @ 2021-08-25 16:04 fridays 阅读(39) 评论(0) 推荐(0)
摘要:1、使用匿名内部类时,必须继承一个类或实现一个接口 2、匿名内部类由于没有名字,因此不能定义构造函数 3、匿名内部类中不能含有静态成员变量和静态方法 阅读全文
posted @ 2021-08-25 15:54 fridays 阅读(101) 评论(0) 推荐(0)
摘要:父类引用指向子类对象时候的一些注意点 首先看一段代码: public class Father { static int b=7; int a=5; public void say(){ System.out.println("父亲say"); } public void write(){ Syst 阅读全文
posted @ 2020-08-09 09:44 fridays 阅读(184) 评论(0) 推荐(0)