Copy the expression like a compiler efficiently in a broken vase:
System.out.println( ("Value" + sb != null) ? sb.toString() : "Null");
Now it "Value" + sbwill never be empty, even if sbit is null ... so when sbit is null, it calls toString()and goes into action.