![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
面试
贼心~不死
这个作者很懒,什么都没留下…
展开
-
int,Integer和new Integer()的比较
数字比较 1:int与Integer 只要值相等就为true int c = 128; Integer d = 128; System.out.println(c == d); 2:int与new Integer() 同样也是值相等就为true int a = 128; Integer b = new Integer(128); System.out.println(a == b); 3...原创 2020-04-27 15:20:26 · 296 阅读 · 1 评论 -
面试题思考:Cookie 和 Session的区别
原地址:原地址 面试回答: 1、cookie数据存放在客户的浏览器上,session数据放在服务器上。 2、cookie不是很安全,别人可以分析存放在本地的cookie并进行cookie欺骗,考虑到安全应当使用session。 3、session会在一定时间内保存在服务器上。当访问增多,会比较占用你服务器的性能,考虑到减轻服务器性能方面,应当使用cookie。 4、单个cookie保存的数据不能超...转载 2020-04-27 15:07:01 · 288 阅读 · 0 评论