Comparing String and Integer with equals

The output of the below code is false String str = "3456"; String str1 = "3456"; System.out.println(Integer.valueOf(str).equals(str1)); I didn't understand it. I thought it will