public class Comparison { public static void main(String[] args) { String s = \"prova\"; String s2 = \"prova\"; System.
Yes, "prova" is stored in the java inner string pool, so its the same reference.