上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 46 下一页

2023年11月24日

Reference

摘要: Reference 概述 Abstract base class for reference objects. This class defines the operations common to all reference objects. Because reference objects a 阅读全文

posted @ 2023-11-24 19:55 anpeiyong 阅读(124) 评论(0) 推荐(0)

2023年11月22日

Druid

摘要: https://github.com/alibaba/druid/wiki/%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98 阅读全文

posted @ 2023-11-22 15:48 anpeiyong 阅读(9) 评论(0) 推荐(0)

数据库连接池数量设置多少合适

摘要: 结论 连接池数量 = ((核心数 * 2) + 有效磁盘数) 原因 对于单核CPU的机器,顺序执行A和B 永远比 通过时间片切换 “同时”执行A和B 快; 一旦线程的数量超过 CPU核数,继续增加线程数,会导致线程上下文切换产生额外的开销; 寻找数据库性能瓶颈的3个因素 CPU 磁盘IO 对于IO密 阅读全文

posted @ 2023-11-22 15:45 anpeiyong 阅读(336) 评论(0) 推荐(0)

2023年11月17日

switch(jdk8)

摘要: 本质 字节码 int类型 1 int = 4 byte public static void switchTest(int a) { switch (a) { case 1: System.out.println("1"); break; case 2: System.out.println("2" 阅读全文

posted @ 2023-11-17 15:54 anpeiyong 阅读(207) 评论(0) 推荐(0)

2023年11月15日

Map---IdentityHashMap

摘要: 总结 Java 中的一种特殊类型的哈希表,它基于对象的引用(即对象的内存地址)而不是对象的内容来进行键值对的存储和查找。这意味着在 IdentityHashMap 中,两个对象即使内容相同,但如果它们不是同一个对象实例(即内存地址不同),也会被视为不同的键。 基于引用比较: IdentityHash 阅读全文

posted @ 2023-11-15 14:42 anpeiyong 阅读(65) 评论(0) 推荐(0)

2023年11月10日

List---Deque-LinkedList

摘要: 概述 Doubly-linked list implementation of the {@code List} and {@code Deque} interfaces. Implements all optional list operations, and permits all elemen 阅读全文

posted @ 2023-11-10 15:52 anpeiyong 阅读(20) 评论(0) 推荐(0)

Queue&Deque

摘要: Queue 概述 A collection designed for holding elements prior to processing.Besides basic {@link java.util.Collection Collection} operations, queues provi 阅读全文

posted @ 2023-11-10 15:22 anpeiyong 阅读(29) 评论(0) 推荐(0)

Iterable&Iterator&Collection

摘要: Iterable 概述 Implementing this interface allows an object to be the target of the "for-each loop" statement. 实现Iterable接口 允许一个对象 作为 foreach遍历的目标; publi 阅读全文

posted @ 2023-11-10 10:05 anpeiyong 阅读(15) 评论(0) 推荐(0)

2023年11月9日

Set&List&Map

摘要: Map 概述 An object that maps keys to values. A map cannot contain duplicate keys; each key can map to at most one value. Map将key映射到value; Map的key不能重复,每个 阅读全文

posted @ 2023-11-09 19:39 anpeiyong 阅读(19) 评论(0) 推荐(0)

Set---HashSet-LinkedHashSet

摘要: 概述 Hash table and linked list implementation of the <tt>Set</tt> interface, with predictable iteration order. This implementation differs from <tt>Has 阅读全文

posted @ 2023-11-09 11:24 anpeiyong 阅读(29) 评论(0) 推荐(0)

上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 46 下一页

导航