GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Update Java基础知识点和答案.md · leaoway/Java-Interview@7bb48fd

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • Java基础知识点和答案.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎Java基础知识点和答案.md‎

Copy file name to clipboardExpand all lines: Java基础知识点和答案.md
+13Lines changed: 13 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -243,3 +243,16 @@ FileReader类是将文件按字符流的方式读取char数组或者String.FileI
243243
3.使用final关键字,JVM会对方法、变量及类进行优化。
244244
## (3)static方法是否可以覆盖?
245245
static方法不能被覆盖,因为方法覆盖是基于运行时动态绑定的,而static方法是编译时静态绑定的。static方法跟类的任何实例都不相关,所以概念上不适用。
246+
# 1.21 session和cookie区别
247+
248+
![](http://ww1.sinaimg.cn/large/007s8HJUly1g5xc3l5kikj30px075n0q.jpg)
249+
250+
cookie是Web服务器发送给浏览器的一块信息。浏览器会在本地文件中给每一个Web服务器存储cookie。以后浏览器在给特定的Web服务器发请求的时候,同时会发送所有为该服务器存储的cookie。下面列出了session和cookie的区别:
251+
无论客户端浏览器做怎么样的设置,session都应该能正常工作。客户端可以选择禁用cookie,但是,session仍然是能够工作的,因为客户端无法禁用服务端的session。
252+
在存储的数据量方面session和cookies也是不一样的。session能够存储任意的Java对象,cookie只能存储String类型的对象。
253+
服务器端Session的保存
254+
Cookie和session区别
255+
session在服务器上以怎样的形式存在session持久化
256+
怎么设置session和cookie的有效时间
257+
Session的实现原理和应用场景 Session原理; 既然Session是存储在服务器内存的,
258+

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.