Programming Languages
Java
Mcq
Sep 24, 2025
Which design pattern is implemented by the String class in Java?
Detailed Explanation
String class implements the Flyweight pattern through string interning. String literals are stored in string pool to save memory by reusing identical strings.
Discussion (0)
No comments yet. Be the first to share your thoughts!
Share Your Thoughts