摘要: 静态方法是线程安全的,静态变量不是先看一个类public class Test{public static String hello(String str){ Stringtmp="";tmp=tmp+str; returntmp;}}hello方法会不会有多线程安全问题呢?没有!!静态方法如果没有... 阅读全文
posted @ 2013-05-29 17:54 feitu324 阅读(250) 评论(0) 推荐(0) 编辑