阿超 发表于 2009-09-04 09:03 浏览次数:224 次
java中StringBuffer和String有什么区别阿
其实很简单,就是一个变量和常量的关系
StringBuffer对象的内容可以修改
而String对象一旦产生后就不可以被修改,重新赋值其实是两个对象...
关键字:
java面试题 | 分类:
Java面试 | 评论数:
0 |
阅读全文
阿超 发表于 2009-09-03 07:50 浏览次数:297 次
第一部分:选择题 QUESTION NO: 1 1、public class Test { public static void changeStr(String str){ str="welcome"; } public static void main(String[] args) { String str="1234"; changeStr(str); System.out.println(str); } } Please write the output result : QU...
关键字:
java面试题 | 分类:
Java面试 | 评论数:
0 |
阅读全文