Why in Java, (“string”).equals(var) recommended other than (var).equals(“string”)?

前端 未结 5 763
盖世英雄少女心
盖世英雄少女心 2021-01-06 04:15

I have seen most cases developers use first string and after that variable used in .equal operation. What is the reason?

5条回答
提交回复
热议问题