标签:ima java print string idt 图片 img highlight ring
public class String001 { public static void main(String[] args) { String s1 = "hello"; String s2 = new String("hello"); String s3 = new String("hello").intern(); System.out.println(s1 == s2); //false System.out.println(s1 == s3); //true } }
标签:ima java print string idt 图片 img highlight ring
原文地址:https://www.cnblogs.com/wgDream/p/12038770.html