Pritha Banerjee wrote:
For any non null argument, %b returns true.
No. Have a look at the API of the class Formatter, especially what it says about the %b conversion.
When the argument is not null, then it makes a discrimination between a boolean argument and a non-boolean.
Nasty trick-questions...