![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java
suhido
这个作者很懒,什么都没留下…
展开
-
JSP页面传递中文参数时乱码
设置 request.setCharacterEncoding("utf-8"); response.setCharacterEncoding("utf-8"); 就OK了!原创 2010-11-08 23:52:30 · 86 阅读 · 0 评论 -
jsp页面定时刷新的方法
1.利用Javascript对整个页面的刷新 [code="java"] function init(){ var t=120; //定义刷新频率,单位:秒 var t1 = t * 1000; window.setInterval("refreshY()",t1);-----这里的t1为毫秒 } function refreshY() { ...原创 2010-11-09 11:09:55 · 438 阅读 · 0 评论 -
Java String Stringbuffer Stringbuilder
[quote]Mutability Difference: String is immutable, if you try to alter their values, another object gets created, whereasStringBuffer and StringBuilder are mutable so they can change their values...原创 2013-07-01 22:14:50 · 72 阅读 · 0 评论 -
Jave garbage collection
[b]什么是垃圾回收(garbage collection)[/b] [b]Garbage Collection[/b] 是一种自动的存储器(内存)管理机制。当一个电脑上的动态存储器不再需要时,就应该予以释放,以让出存储器,这种存储器资源管理,称为垃圾回收。 垃圾回收的两个[b]基本原理[/b]: [list] [*]1、考虑某个对象的未来的程序运行中,将不会被访问。 [*]2、向这些对...原创 2013-07-08 22:54:05 · 160 阅读 · 0 评论 -
Stack and Heap
[b]Stack:[/b] [quote] * Stored in computer RAM just like the heap. * Variables created on the stack will go out of scope and automatically deallocate. * Much faster to allocate in compariso...原创 2013-07-09 23:12:01 · 130 阅读 · 0 评论 -
Java判断字符串为空
[code="java"] str==null || str.equals("") [/code] 有空整理原创 2013-09-12 18:43:34 · 102 阅读 · 0 评论 -
whats the difference between .equals and ==?
[b]Java的数据类型:[/b] [list] [*]分类简单数据类型 [*]复合数据类型 [/list] [b]简单数据类型[/b]:简单数据类型是不能再简化的、内置的数据类型,由编程语言定义,表示真实的数字、字符和整数。 [b]复合数据类型[/b]:由简单数据类型的组合形成的更大、更复杂的数据类型。例如类、接口和数字。 [b]==操作比较的是两个变量的值是否相等,对于引...原创 2013-09-25 14:59:03 · 185 阅读 · 0 评论