This is mainly out of curiosity. How would you (if you can) make a class that mimics String. You can't extend String as it's final so that's a no go, but purely for the interest factor, I thought about creating an object that could be initialized literally (String s = "string";).
Is this possible? If so, how? If not, why?