Guys, I'm studying for the
SCJP exam using Kathy Sierra's book. In chapter 6 she explains how Strings are immutable, and how
Java deals with its "String Pool". Two questions came to my mind that aren't covered in this study guide:
1) StringBuffer objects are direct subclasses of Object, and they are muttable. How java deals with them behind the curtains?
2) Is the "String Constant Pool" a reserved segment of the heap used for Strings only?