public class Comparison { public static void main(String[] args) { String s = \"prova\"; String s2 = \"prova\"; System.
Source code literals are part of a constant pool, so if the same literal appears multiple times, it will be the same object at runtime.