From a5b98f2ab8e2475965c98ab257281c54f4c6a6d5 Mon Sep 17 00:00:00 2001 From: crossoverJie Date: Fri, 4 May 2018 17:49:50 +0800 Subject: [PATCH 1/4] =?UTF-8?q?JDK1.7=E3=80=818=20=E5=B7=B2=E7=BB=8F?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=BA=E5=8F=8C=E5=90=91=E9=93=BE=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- notes/Java 容器.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notes/Java 容器.md b/notes/Java 容器.md index 9893ee27..6791e2ed 100644 --- a/notes/Java 容器.md +++ b/notes/Java 容器.md @@ -212,7 +212,7 @@ private void writeObject(java.io.ObjectOutputStream s) ### 4. 和 LinkedList 的区别 -- ArrayList 基于动态数组实现,LinkedList 基于双向循环链表实现; +- ArrayList 基于动态数组实现,LinkedList 基于双向链表实现; - ArrayList 支持随机访问,LinkedList 不支持; - LinkedList 在任意位置添加删除元素更快。 From 81fb7e1e20785dbfb39ff5f221b42d3acd5576d0 Mon Sep 17 00:00:00 2001 From: gongmw Date: Sun, 6 May 2018 21:31:53 +0800 Subject: [PATCH 2/4] =?UTF-8?q?jvm=20=E4=BF=AE=E6=94=B9=E6=B0=B8=E4=B9=85?= =?UTF-8?q?=E4=BB=A3=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .DS_Store | Bin 0 -> 6148 bytes notes/Java 虚拟机.md | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 .DS_Store diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..cc4f54787a6b0fe5a6801b3bfbaf55f45ce33ac8 GIT binary patch literal 6148 zcmeHK%Sr=55Ukb}0$y_TIKSW@3?Y7jKOiO^gy0I%`=0zRKh5d~$g&u6@uJnxQ!_nX zGfW+}w*lDZeSZtA0j%hb`0!zAzVE)Ui;6f}oN?SAcZbJuJaBoQIrj=L81aTD%=iOd z@r>Pf@Vpb1B?Y8_6p#W^Knk2vpo;YB`c#tkq<|FomkRjzq0t?C;glGk4i3=*5C?|C zIFDX}*gQb&g;OFUG)pQmsa7q9C7tnBdA)E-Ogb!X<~enB_WFNE|Dpe%leCfoQs7T1V8ix)yWx|nwk{s$wYJe8=$`XQcjG)L9HJZ(qa1VL f<@hF&GOziZ`@L{V3_9aMC+cUwb&*Md-&WuYW|0}( literal 0 HcmV?d00001 diff --git a/notes/Java 虚拟机.md b/notes/Java 虚拟机.md index 4b72b865..123df47d 100644 --- a/notes/Java 虚拟机.md +++ b/notes/Java 虚拟机.md @@ -90,7 +90,7 @@ java -Xms=1M -Xmx=2M HackTheJava 和 Java 堆一样不需要连续的内存,并且可以动态扩展,动态扩展失败一样会抛出 OutOfMemoryError 异常。 -对这块区域进行垃圾回收的主要目标是对常量池的回收和对类的卸载,但是一般比较难实现,HotSpot 虚拟机把它当成永久代来进行垃圾回收。 +对这块区域进行垃圾回收的主要目标是对常量池的回收和对类的卸载,但是一般比较难实现。JDK1.7之前,HotSpot 虚拟机把它当成永久代来进行垃圾回收,JDK8之后,取消了永久代,用metaspace(元数据)区替代。 ## 运行时常量池 From 8c115712af6229566df838646339885219ce3d7b Mon Sep 17 00:00:00 2001 From: gongmw Date: Sun, 6 May 2018 21:34:43 +0800 Subject: [PATCH 3/4] =?UTF-8?q?jvm=20=E4=BF=AE=E6=94=B9=E6=B0=B8=E4=B9=85?= =?UTF-8?q?=E4=BB=A3=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .DS_Store | Bin 6148 -> 0 bytes 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 .DS_Store diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index cc4f54787a6b0fe5a6801b3bfbaf55f45ce33ac8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeHK%Sr=55Ukb}0$y_TIKSW@3?Y7jKOiO^gy0I%`=0zRKh5d~$g&u6@uJnxQ!_nX zGfW+}w*lDZeSZtA0j%hb`0!zAzVE)Ui;6f}oN?SAcZbJuJaBoQIrj=L81aTD%=iOd z@r>Pf@Vpb1B?Y8_6p#W^Knk2vpo;YB`c#tkq<|FomkRjzq0t?C;glGk4i3=*5C?|C zIFDX}*gQb&g;OFUG)pQmsa7q9C7tnBdA)E-Ogb!X<~enB_WFNE|Dpe%leCfoQs7T1V8ix)yWx|nwk{s$wYJe8=$`XQcjG)L9HJZ(qa1VL f<@hF&GOziZ`@L{V3_9aMC+cUwb&*Md-&WuYW|0}( From ab846658ba379aff5ff2ea85bf228ecb192871b7 Mon Sep 17 00:00:00 2001 From: Alpha2J <3287566354@qq.com> Date: Mon, 7 May 2018 10:25:45 +0800 Subject: [PATCH 4/4] Update SQL.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit mysql 5.7.18 中, 触发器不允许返回结果集. --- notes/SQL.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/notes/SQL.md b/notes/SQL.md index 2eb67e58..2e99db4e 100644 --- a/notes/SQL.md +++ b/notes/SQL.md @@ -603,7 +603,10 @@ INSERT 触发器包含一个名为 NEW 的虚拟表。 ```sql CREATE TRIGGER mytrigger AFTER INSERT ON mytable -FOR EACH ROW SELECT NEW.col; +FOR EACH ROW SELECT NEW.col into @result; + +-- 获取结果 +SELECT @result; ``` DELETE 触发器包含一个名为 OLD 的虚拟表,并且是只读的。