私の質問は、インターンが文字列と SPC (文字列プール定数) を持つ文字列で動作しており、インターンの概念も整数で動作している場合、整数プール定数はありますか?そうでない場合、どのように機能しますか?
class InternExample
{
public void print()
{
Integer i=10;
Integer j=10;
String c="a";
String s="a";
System.out.println(i==j);// prints true
System.out.println(c==s);//prints true
}
public static void main(String args[])
{
new InternExample().print();
}
}