File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
system-design/authority-certification Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ public class ArrayList<E> extends AbstractList<E>
1414
1515- ` RandomAccess ` 是一个标志接口,表明实现这个这个接口的 List 集合是支持** 快速随机访问** 的。在 ` ArrayList ` 中,我们即可以通过元素的序号快速获取元素对象,这就是快速随机访问。
1616- ` ArrayList ` 实现了 ** ` Cloneable ` 接口** ,即覆盖了函数` clone() ` ,能被克隆。
17- - ` ArrayList ` 实现了 java.io.Serializable ` 接口,这意味着 ` ArrayList`支持序列化,能通过序列化去传输。
17+ - ` ArrayList ` 实现了 ` java.io.Serializable ` 接口,这意味着` ArrayList ` 支持序列化,能通过序列化去传输。
1818
1919### 1.1. Arraylist 和 Vector 的区别?
2020
Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ public String readAllCookies(HttpServletRequest request) {
117117
118118这是一道经典的面试题!
119119
120- 一般是通过 Cookie 来保存 SessionID ,假如你使用了 Cookie 保存 SessionID的方案的话, 如果客户端禁用了Cookie,那么Seesion就无法正常工作 。
120+ 一般是通过 Cookie 来保存 SessionID ,假如你使用了 Cookie 保存 SessionID的方案的话, 如果客户端禁用了Cookie,那么Session就无法正常工作 。
121121
122122但是,并不是没有 Cookie 之后就不能用 Session 了,比如你可以将SessionID放在请求的 url 里面` https://javaguide.cn/?session_id=xxx ` 。这种方案的话可行,但是安全性和用户体验感降低。当然,为了你也可以对 SessionID 进行一次加密之后再传入后端。
123123
You can’t perform that action at this time.
0 commit comments