public class Comparison { public static void main(String[] args) { String s = \"prova\"; String s2 = \"prova\"; System.
JLS, 3.10.5 => It is guaranteed that a literal string object will be reused by any other code running in the same virtual machine that happens to contain the same string literal