上一页 1 2 3 4 5 6 7 8 ··· 25 下一页
摘要: # Packages Definition: A package is a grouping of related types providing access protection and name space management. Note that types refers to **cla 阅读全文
posted @ 2023-06-17 16:12 测试开发刚哥 阅读(9) 评论(0) 推荐(0) 编辑
摘要: # 注解 注解的作用: - Information for the compiler — Annotations can be used by the compiler to detect errors or suppress warnings. - Compile-time and deploym 阅读全文
posted @ 2023-06-17 15:07 测试开发刚哥 阅读(8) 评论(0) 推荐(0) 编辑
摘要: # Lambda Expression 有了Lambda Expression,就不用再写anonymous classes。 写Lambda,首先要找到它的类型。 There is a restriction on the type of a lambda expression: it has t 阅读全文
posted @ 2023-06-17 14:06 测试开发刚哥 阅读(8) 评论(0) 推荐(0) 编辑
摘要: # 泛型 为什么需要泛型?generics enable types (classes and interfaces) to be parameters when defining classes, interfaces and methods. > 说白了就像Python动态语言的变量,是动态的, 阅读全文
posted @ 2023-06-16 11:08 测试开发刚哥 阅读(19) 评论(0) 推荐(0) 编辑
摘要: # 接口 接口只能包含:constants, method signatures(abstract), default methods, static methods, and nested types 方法体只存在于:default methods and static methods 接口不能实 阅读全文
posted @ 2023-06-05 23:25 测试开发刚哥 阅读(8) 评论(0) 推荐(0) 编辑
摘要: # 继承 Java只有单继承,最顶级的父类是Object。 子类会继承父类的fields和methods,而不会继承constructors,因为constructors不属于methods,但是子类可以通过super调用父类的constructor。 子类继承父类的范围是:public、prote 阅读全文
posted @ 2023-06-02 23:31 测试开发刚哥 阅读(13) 评论(0) 推荐(0) 编辑
摘要: # Numbers Number的子类: ![](https://img2023.cnblogs.com/blog/1629545/202306/1629545-20230602140903535-645231197.png) 另外还有BigDecimal和BigInteger,用于高精度计算,At 阅读全文
posted @ 2023-06-02 14:09 测试开发刚哥 阅读(12) 评论(0) 推荐(0) 编辑
摘要: # 创建类 定义类Bicycle: ```java public class Bicycle { // the Bicycle class has // three fields public int cadence; public int gear; public int speed; // th 阅读全文
posted @ 2023-06-02 11:17 测试开发刚哥 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 如果没有这次全量数据对比工具,那么也许这个历史问题会继续隐藏着,直到发生线上事故才暴露出来,毕竟人工抽样验证发现的概率只有**5.8%**。 背景是发票系统有18500个电子发票订单被财务系统驳回了,驳回原因是财务系统上线了全电发票需求,上线后电子发票枚举被误删,无法处理电子发票。需要我们发票系统对 阅读全文
posted @ 2023-05-23 15:23 测试开发刚哥 阅读(52) 评论(0) 推荐(0) 编辑
摘要: 变量 Instance Variables (Non-Static Fields) 实例变量(非静态变量) 一个类可以创造多个实例,实例中的变量叫做实例变量,相互独立。 Class Variables (Static Fields) 类变量(静态变量) 对比来看,类变量就是类的变量,一个类只能有一份 阅读全文
posted @ 2023-03-28 16:52 测试开发刚哥 阅读(20) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 25 下一页