I am surprised to know that getBoolean() and valueOf() method returns different results for the same input string.
getBoolean()
valueOf()
I have tried to pass the
class Boo1 { public static void main(String[] args) { System.setProperty("true","true"); System.setProperty("false","true"); boolean d=Boolean.getBoolean("true"); System.out.println(d); } }