Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

7
  • Does new StringBuilder() count as object? Commented Dec 1, 2013 at 14:24
  • So the objects would be a, b, c, an anonymous StringBuilder, and d? Commented Dec 1, 2013 at 14:29
  • 1
    @mathguy54 - You're not paying attention. a, b, and c are literals. They were created when the class was loaded. Commented Dec 1, 2013 at 15:25
  • 1
    LOL! StackOverflow, or how to get my degree without ever turning on my brain! Commented Dec 1, 2013 at 15:34
  • 1
    @mathguy54 -- Two, the StringBuilder and the String value assigned to d. Commented Dec 1, 2013 at 18:59