Does it make a difference if printing the contents of a StringBuilder object is done directly or if the .toString() method is called?
In particular
StringBuilder sb = new StringBuilder("abc");
System.out.println(sb);
System.out.println(sb.toString());
Is one style preferred over the other?
Can anyone comment on why the first way works? In Java does System.out.println implicitly call the .toString() method of an object?