How does the 'String Pool' in Java affect memory management?

  • Improved thread safety
  • Increased memory consumption
  • No impact on memory
  • Reduced memory usage
The 'String Pool' in Java reduces memory usage by reusing existing string literals, thus decreasing the overall memory footprint and enhancing memory management efficiency.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *