摘要: 先记个题目~ 阅读全文
posted @ 2021-10-18 18:48 egu0o 阅读(27) 评论(0) 推荐(0) 编辑
摘要: select * from t_table where b > 30 and c < 50 可能用到哪些索引? idx_a(a) idx_b(b) idx_a_b(a, b) 小实验 创建表 t_test,其中有 id, col1, col2, name 四列,id 列为 PK,col1、col2 阅读全文
posted @ 2021-10-18 17:06 egu0o 阅读(38) 评论(0) 推荐(0) 编辑
摘要: mget key1, key2, key3,,, 批量获取多个 key 的值 https://www.redis.net.cn/order/3549.html 阅读全文
posted @ 2021-10-18 16:49 egu0o 阅读(30) 评论(0) 推荐(0) 编辑
摘要: 机器数与真值 1、机器数 机器数是带符号的,在计算机用一个数的最高位存放符号,正数为0,负数为1. (假设字长为 8 位) 3 的机器数 0000-0011 -3 的机器数 1000-0011 2、真值 因为第一位是符号位,所以机器数的形式值就不等于真正的数值。 为区别起见,将带符号位的机器数对应的 阅读全文
posted @ 2021-10-18 16:44 egu0o 阅读(1026) 评论(0) 推荐(0) 编辑
摘要: 联系: 同名方法,都是多态性的体现。重载是编译时多态,重写是运行时多态。 重写 子类对父类的方法进行重新编写 (不满意父类的方法) 要求: 两者的方法名和参数列表相同 子类的访问权限大于等于父类的 子类的返回值类型小于等于父类的 public class Demo extends Object { 阅读全文
posted @ 2021-10-18 14:38 egu0o 阅读(130) 评论(0) 推荐(0) 编辑
摘要: Integer 缓存: IntegerCache /** * Cache to support the object identity semantics of autoboxing for values between * -128 and 127 (inclusive) as required 阅读全文
posted @ 2021-10-18 14:13 egu0o 阅读(35) 评论(0) 推荐(0) 编辑