`
dengyl2008
  • 浏览: 2308 次
最近访客 更多访客>>
社区版块
存档分类
最新评论
文章列表
     String 的长度是不可变的,StringBuffer的长度是可变的。如果对字符串中的长度经常进行操作,特别是内容要修改时,使用StringBuffer,如果最后需要String,那么使用StringBuffer的toString()方法。 当我们进行字符拼接时,请使用StringBuffer或StringBuilder类而非String类,因为前者将比后者性能高的多,在java语言的优化编程里面,这是一条比较重要的。      在使用String 的时候,拼接字符串时使用“+”这个东西在JVM上形成临时的StringBuffer对象,同时在每一个字符串上都建立一 ...
错误信息 Server Tomcat v6.0 Server at localhost was unable to start within 45 seconds. If the server requires more time, try increasing the timeout in the server editor 解决方案 eclipse空间地址+ \.metadata\.plugins\org.eclipse.wst.server.core\servers.xml <?xml version="1.0" encoding="UTF-8&qu ...
Global site tag (gtag.js) - Google Analytics