上一页 1 2 3 4 5 6 ··· 29 下一页
摘要: 阅读全文
posted @ 2024-03-25 21:44 小彭先森 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 上限技术: 下限技术: 阅读全文
posted @ 2024-03-25 21:13 小彭先森 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 1.泛型: 定义类,接口,方法时,同时声明一个或多个类型的变量(如:<E>),称为泛型类,泛型接口,泛型方法,他们统称为泛型 2.自定义泛型类: 3.泛型接口: 阅读全文
posted @ 2024-03-25 20:56 小彭先森 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 1.枚举:特殊的类 抽象枚举,枚举类实现抽象方法。 package com.itheima.枚举; public class test { public static void main(String[] args) { //目标:认识枚举 A a1=A.x; System.out.println( 阅读全文
posted @ 2024-03-25 20:16 小彭先森 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 1.认识匿名内部类: package com.itheima.匿名内部类; public class test { public static void main(String[] args) { //把这个匿名内部类编译成一个子类,然后会立即创建一个子类对象出来 Animal A=new Anim 阅读全文
posted @ 2024-03-25 19:45 小彭先森 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 静态内部类: 局部内部类: 阅读全文
posted @ 2024-03-23 21:53 小彭先森 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 1.JDK8新增的三种方法: 阅读全文
posted @ 2024-03-23 21:25 小彭先森 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 1.接口: package com.itheima.接口; public interface a { //接口中不能有构造器也不能有代码块,不能创建对象 //成员变量(默认为常量) 大写比较官方 String schoolName="黑马程序员"; void test();//在接口中成员方法(默认 阅读全文
posted @ 2024-03-23 20:49 小彭先森 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2024-03-23 20:27 小彭先森 阅读(2) 评论(0) 推荐(0) 编辑
摘要: package com.itheima.abstract1; public class Test { public static void main(String[] args) { } } abstract class A{ public String a; private static Stri 阅读全文
posted @ 2024-03-23 20:11 小彭先森 阅读(10) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 29 下一页