package Nov2016; public class Ques1129 { public static void main(String[] args) { final String str = "123"; str = "1234"; System.out.println(str); final StringBuffer sb = new StringBuffer("123"); sb.append("4"); System.out.println(sb); } }
今日问题:
请问主程序输出结果是什么?(点击以下“【Java每日一题】20161129”查看20161128问题解析)
题目原发布于公众号、简书:【Java每日一题】20161129,【Java每日一题】20161129