1
0
mirror of https://github.com/Snailclimb/JavaGuide synced 2025-06-16 18:10:13 +08:00

1646 Commits

Author SHA1 Message Date
qksuki
b6d1a8cb2e
Update serialization.md
修正序列化相关描述
2024-09-16 22:13:48 +08:00
qksuki
b5469fc505
Update java-basic-questions-03.md
修正序列化相关的描述
2024-09-16 22:13:18 +08:00
qksuki
afcf129b93
Update memory-area.md
修正描述
2024-09-16 01:04:33 +08:00
qksuki
4e431621a5
Update java-basic-questions-02.md
修正描述错误
2024-09-16 01:03:50 +08:00
qksuki
d011ff6161
Update memory-area.md
同步修改字符串常量池的描述
2024-09-16 01:01:20 +08:00
qksuki
0d308e7eb2
Update java-basic-questions-02.md
修正字符串常量池引用的描述
2024-09-16 00:59:43 +08:00
qksuki
c25884fb80
Update java-basic-questions-01.md
修正描述问题
2024-09-14 00:28:38 +08:00
cxyhuky
e0fad69e4e update java-thread-pool-best-practices.md 2024-09-13 15:57:38 +08:00
chaobk
394043949e LinkedList指定位置插入/删除,遍历平均元素应该是n/4个元素
因为本身就有头尾指针,遍历元素的时候会从最近的指针出发,最多会遍历n/2个元素,平均应该是n/4。Java8源码片段如下:

    Node<E> node(int index) {
        // assert isElementIndex(index);

        if (index < (size >> 1)) {
            Node<E> x = first;
            for (int i = 0; i < index; i++)
                x = x.next;
            return x;
        } else {
            Node<E> x = last;
            for (int i = size - 1; i > index; i--)
                x = x.prev;
            return x;
        }
    }
2024-09-08 22:38:00 +08:00
Guide
93b80ea985 [docs update]线程池参数常用公式修改 2024-09-07 17:36:39 +08:00
Guide
322abf45c3
Merge pull request #2473 from Dllragon/main
Update jvm-garbage-collection.md 引号反了
2024-09-05 12:20:44 +08:00
chaobk
d4de9a025b 删除多余字 2024-09-04 23:20:39 +08:00
DAI LILONG
3c6e434d46
Update jvm-garbage-collection.md 标点调整与内容更新
修改了错误使用的中文冒号;更新默认使用G1的JDK范围至JDK22
2024-09-04 16:53:47 +08:00
DAI LILONG
42c70053ee
Update jvm-garbage-collection.md 引号反了
引号反了
2024-09-04 16:16:05 +08:00
Guide
9b3a71c2cb [docs update]IoC和AOP详解完善 2024-09-04 16:13:41 +08:00
Guide
f2b24072b5 [docs updete]typo 2024-08-21 12:26:42 +08:00
Guide
557d658b7d
Merge pull request #2455 from WindLYLY/main
优化表达便于理解
2024-08-15 23:44:32 +08:00
WindLY
e29f141936
Update java-concurrent-questions-03.md 2024-08-15 22:20:20 +08:00
WindLY
cb70cdf321
Update java-concurrent-questions-03.md 2024-08-15 22:18:59 +08:00
WindLY
641f4fa4a9
Update jmm.md 2024-08-15 16:15:28 +08:00
WindLY
a4fb6dcd80
Update jmm.md 2024-08-15 16:13:00 +08:00
Guide
c0535df01c [docs update]完善HTTP/2.0 和 HTTP/3.0 的对比 2024-08-13 16:01:02 +08:00
Guide
af341e3b05 [docs update]完善回答HashMap 的长度为什么是 2 的幂次方 2024-08-11 15:33:02 +08:00
Guide
ee1e7a5140 Merge branch 'main' of github.com:Snailclimb/JavaGuide 2024-08-10 20:38:24 +08:00
Guide
e29ad07899 [docs update]内容完善 2024-08-10 20:38:10 +08:00
scclsy
18b27250aa [doc update]增加关于-Xverify:none 和-noverify 被弃用说明 2024-08-08 16:18:25 +08:00
ning
0ca3a95814
Update java-basic-questions-02.md
add describe
2024-08-04 15:46:51 +08:00
ning
b75ee23d39
Update java-basic-questions-02.md
fix describe text between string builder and string +
2024-08-04 15:41:36 +08:00
Guide
4acc22c947
Merge pull request #2440 from WindLYLY/main
Update arraylist-source-code.md
2024-07-30 09:36:42 +08:00
WindLY
e305618723
Update arraylist-source-code.md 2024-07-29 16:53:10 +08:00
WindLY
979800a553
Update java-collection-questions-02.md 2024-07-29 11:30:49 +08:00
Guide
94a0c4ceb7 [docs update]部分描述完善 2024-07-27 18:18:34 +08:00
Guide
4f87ee846e [docs update]完善问题:面向对象和面向过程的区别 2024-07-21 12:56:33 +08:00
Guevara
b5c1dcbc1c
Update nio-basis.md
多打了一个“主”
2024-07-17 17:02:06 +08:00
Guide
b392abd1e7 Update atomic-classes.md 2024-07-17 13:31:32 +08:00
Guide
fe697ad4a3 [docs update&add]完善部分内容描述&新增一篇cas详解 2024-07-17 12:53:20 +08:00
Guide
97dd88a54c [docs update]完善对接口和抽象类的描述 2024-07-14 18:05:30 +08:00
Zhao Yuxin
d077fdf04d
Update java8-tutorial-translate.md
在举例Stream中,Parallel Sort(并行排序)时,列举并行排序的例子里面,代码中的注释写成了“//串行排序所用的时间”。但其实是“//并行排序所用的时间”
2024-07-11 17:55:12 +08:00
Guide
a88ad33569 [docs update]移除&重新手绘部分图片 2024-07-09 23:49:02 +08:00
Guide
e35a7ce5f6 [docs update]完善问题execute() vs `submit() 2024-07-08 14:58:18 +08:00
Guide
f537c8a3fc Update java-collection-questions-02.md 2024-07-05 16:52:36 +08:00
gyaatrox
c8803d3e5c
Update memory-area.md
格式问题
2024-07-05 13:41:27 +08:00
玘珞
86ee67bf35
Merge branch 'Snailclimb:main' into main 2024-07-03 20:43:03 +08:00
玘珞
98fabd8fd8
Update java-concurrent-questions-03.md
修改错别字
2024-07-03 20:42:36 +08:00
qixiao
e03d26e203
更新Update java-basic-questions-01.md文件对BigDecimal描述,比较值内容应该用compareTo 2024-06-30 22:23:35 +08:00
Guide
f899fee784 [docs update]Java并发常见面试题总结(上)完善
添加虚拟线程到&新增问题:单核 CPU 支持 Java 多线程吗?
2024-06-28 19:43:09 +08:00
Guide
132ef6acbd
Merge pull request #2415 from CoisiniAKAM/main
Update linkedlist-source-code.md
2024-06-27 14:53:22 +08:00
玘珞
0118be879c
Update java-basic-questions-01.md
增加了“@Override”重写注解,提高可读性
2024-06-26 22:58:21 +08:00
TimeFFF
2b859fd768
Update linkedlist-source-code.md
修改了“在指定元素之前插入元素”代码注释,原有注释对链表状态描述有误
2024-06-25 18:56:12 +08:00
Guide
a955c64542 [docs fix]typo 2024-06-20 09:47:28 +08:00