If you give a String value that is True to the boolean wrapper Class - Boolean , irrespective of the case, the value is stored as true. Anything other than that is stored as false. Hope this clears.
Sometimes it helps having a look at the JDK sources. And what's more, it is a very useful source of information. Here is the relevant code of the java.lang.Boolean class that shows you why the output is truetruefalse:
Hi... I think that's because of the overloaded form of the '+' operator. When one of its operands is a String, the other operand will be somehow transformed to a String. Literal values will become a String representation of them... and objects in general will have their toString() method called. The toString() method of an object of tipe Boolean returns a String representing the encapsulated value. If I said anything stupid please help me telling... Thanx
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.