Leave a Reply 1

Your email address will not be published. Required fields are marked *


Snr DingDong

Snr DingDong

Answer is B. StringBuilder int constructor takes an int and creates empty obj with the int as a capacity. Call its toString and it will return an empty string. So
sb.toString().equals(s) will return true.

“”.equals(“”) in other words