---
title: "Why java uses the concept of string literal?"  
description: "Why java uses the concept of string literal?"  
author: "Anonymous User"  
published: 2015-04-25  
updated: 2020-09-23  
canonical: https://www.mindstick.com/interview/2437/why-java-uses-the-concept-of-string-literal  
category: "java"  
tags: ["java", "string"]  
reading_time: 1 minute  

---

# Why java uses the concept of string literal?

Make Java more memory efficient (because no new objects are created if it exists already in string constant pool).

## Answers

### Answer by Anonymous User

Make Java more memory efficient (because no new objects are created if it exists already in string constant pool).


---

Original Source: https://www.mindstick.com/interview/2437/why-java-uses-the-concept-of-string-literal

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
