While working with StringBuilder you may have come across a strange behaviour of append() method for null values. If you append a null value to the StringBuilder object, it would be stored as a "null" (four character string) in the object instead of no value at all. Let's take an example to underst…