'For "%b" : If the argument arg is null, then the result is "false". If arg is a boolean or Boolean, then the result is the string returned by String.valueOf(). Otherwise, the result is "true".' I got it, thanks Piet
For any non null argument, %b returns true. So in line 6 we get true. However in line 7 'format("%b",new Boolean(b)).toString();' returns false. Please explain.
In lines 1 and 2, d and e both contain Strings. String and StringBuilder do not belong to the same class hierarchy so these lines should result in compilation error.
I took seven enthuware mock tests and my scores are as follows:
Test-1 = 83%
Test-2 to Test-6 = 71%
Test-7 = 72%
Test-8 = 77%
Am I ready for the final exam??
I have'nt yet taken the unique test. Any suggestions are welcome.