随笔分类 -  java基础

集合,泛型,反射,io流,字符串,stream流函数式编程
while(1)和for(;;)的区别
摘要:参见:https://blog.csdn.net/xussy/article/details/91959178 阅读全文

posted @ 2021-06-17 10:24 The羿 阅读(38) 评论(0) 推荐(0)

java当中的语法糖
摘要:参见; 阅读全文

posted @ 2021-06-11 14:14 The羿 阅读(20) 评论(0) 推荐(0)

java中Direct Memory堆外内存
摘要:参见:https://blog.csdn.net/q5706503/article/details/84590315 阅读全文

posted @ 2021-06-10 16:39 The羿 阅读(97) 评论(0) 推荐(0)

java中的stringtable的常量池操作
摘要:参见:https://blog.csdn.net/gw_9527/article/details/103002455 interrn()方法会从堆中复制一份到常量池中 阅读全文

posted @ 2021-06-10 15:18 The羿 阅读(41) 评论(0) 推荐(0)

jdk中的常见小坑
摘要: 阅读全文

posted @ 2021-01-04 10:31 The羿 阅读(56) 评论(0) 推荐(0)

ConcurrentHashMap中ConcurrentHashMap.computeIfAbsent方法的使用
摘要:参见:https://blog.csdn.net/u014394042/article/details/104029694 https://blog.csdn.net/u014394042/article/details/104029694 阅读全文

posted @ 2020-10-12 14:29 The羿 阅读(1103) 评论(0) 推荐(0)

各种classLoader解释
摘要:参见:https://www.136.la/tech/show-62603.html https://blog.csdn.net/xcxy2015/article/details/80746614 https://www.jianshu.com/p/946df4276662 非常好的文章 https 阅读全文

posted @ 2020-09-18 18:02 The羿 阅读(98) 评论(0) 推荐(0)

finally与catch的执行
摘要:参见:https://www.cnblogs.com/lanxuezaipiao/p/3440471.html 阅读全文

posted @ 2020-08-10 13:32 The羿 阅读(128) 评论(0) 推荐(0)

stream流遇到的问题
摘要:并发的问题 参见:https://www.cnblogs.com/sueyyyy/p/13079525.html 阅读全文

posted @ 2020-07-23 18:25 The羿 阅读(207) 评论(0) 推荐(0)

jvm内存空间大小的调整以及基本概念
摘要:https://blog.csdn.net/xiaolyuh123/article/details/103729222 基本内存模型介绍 推荐 https://blog.csdn.net/kdy527/article/details/86511693 补充 参见:https://www.cnblog 阅读全文

posted @ 2020-04-18 21:34 The羿 阅读(141) 评论(0) 推荐(0)

java当中的异常分类
摘要:参见:https://blog.csdn.net/qq_34309305/article/details/79202929 文章结构清晰,适合阅读 阅读全文

posted @ 2020-04-18 18:23 The羿 阅读(84) 评论(0) 推荐(0)

synchronized关键字实现原理
摘要:参见:https://my.oschina.net/javafirst/blog/3024676 https://www.iteye.com/blog/uule-1104562 https://www.cnblogs.com/ChenXionghfut/p/8540231.html https:// 阅读全文

posted @ 2020-04-05 23:34 The羿 阅读(281) 评论(0) 推荐(0)

类加载机制
摘要:Java虚拟机把描述类的数据从Class文件加载到内存,并对数据进行校验、转换解析和初始化,最终形成可以被虚拟机直接使用的Java类型,这就是虚拟机的加载机制。 类从被加载到虚拟机内存中开始,到卸载出内存为止,它的整个生命周期包括了:加载(Loading)、验证(Verification)、准备(P 阅读全文

posted @ 2020-04-05 20:43 The羿 阅读(71) 评论(0) 推荐(0)

jdk1.8ArrayList主要方法和扩容机制(源码解析)
摘要:参见博客:https://blog.csdn.net/u010890358/article/details/80515284?depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.n 阅读全文

posted @ 2020-04-02 21:48 The羿 阅读(212) 评论(0) 推荐(0)

ArrayList,HashMap,LinkedList 初始化大小和 扩容机制
摘要:参见:https://blog.csdn.net/zuochao_2013/article/details/80974963?depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.n 阅读全文

posted @ 2020-04-02 14:09 The羿 阅读(1853) 评论(0) 推荐(0)

ArrayList和LinkedList的区别、扩容机制以及底层实现
摘要:参见:https://blog.csdn.net/WINGZINGLIU/article/details/83715578 阅读全文

posted @ 2020-04-02 14:08 The羿 阅读(1824) 评论(0) 推荐(0)

spring boot中使用servlet,filter
摘要:参见:https://blog.csdn.net/yunfeng482/article/details/72721200?fps=1&locationNum=5 阅读全文

posted @ 2020-04-01 23:09 The羿 阅读(110) 评论(0) 推荐(0)

servlet的之前与之后的基本使用
摘要:参见:https://www.cnblogs.com/xdp-gacl/p/4010328.html 阅读全文

posted @ 2020-04-01 22:26 The羿 阅读(115) 评论(0) 推荐(0)

java HashMap插入重复Key值问题
摘要:要在HashMap中插入重复的值,首先需要弄清楚HashMap里面是怎么存放元素的。put方法Map里面存放的每一个元素都是key-value这样的键值对,而且都是通过put方法进行添加的,而且相同的key在Map中只会有一个与之关联的value存在。put方法在Map中的定义如下。 V put(K 阅读全文

posted @ 2020-04-01 18:03 The羿 阅读(4480) 评论(0) 推荐(0)

ConcurrentHashMap底层实现原理(JDK1.7 & 1.8)
摘要:前言 我们都知道HashMap在多线程情况下,在put的时候,插入的元素超过了容量(由负载因子决定)的范围就会触发扩容操作,就是rehash,这个会重新将原数组的内容重新hash到新的扩容数组中,在多线程的环境下,存在同时其他的元素也在进行put操作,如果hash值相同,可能出现同时在同一数组下用链 阅读全文

posted @ 2020-04-01 12:47 The羿 阅读(352) 评论(0) 推荐(0)

导航