标签:static inter == out rgs col java8 ati system
public class Solution { public static void main(String[] args) { String a = new String("he")+new String("llo"); System.out.println(a == a.intern()); String b = "hello"; System.out.println(a == b); System.out.println(a == "hello"); System.out.println(b == "hello"); } }
true
true
true
true
标签:static inter == out rgs col java8 ati system
原文地址:https://www.cnblogs.com/tonggc1668/p/12045156.html