Why are these results different between two types code of Java? First of all, my mother language is not English.