Sign In
Ask Question
Paul
Computers & Technology
13 January, 01:34
Why is String final in Java?
+1
Answers (
1
)
Cherish Morris
13 January, 02:02
0
string objects are cached in string pool.
Explanation:
Strings in Java are immutable or final because the string objects are cached in String Pool. As we know multiple clients share the string literals so there exists a risk of one client's action affecting all other clients.
For ex:-The value of string is "Roast" and client changed it to "ROAST" so all other clients will see ROAST instead of Roast.
Comment
Complaint
Link
Know the Answer?
Answer
Not Sure About the Answer?
Find an answer to your question 👍
“Why is String final in Java? ...”
in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers
You Might be Interested in
How many bytes in 1 Mbps
Answers (2)
A personal computer can only have one operating system installed on it. true false
Answers (1)
What is the name and brand of the first computer
Answers (1)
Whats the size of a short bond paper in microsoft word?
Answers (1)
Match the file types to their unique characteristics. A. DLL B. Batch C. executable D. initialization 1. contains configuration information, such as the name of the user and last login information 2. contains commands that repeat frequently 3.
Answers (1)
New Questions in Computers & Technology
What must you consider when determining the efficiency of an algorithm? Select two choices. a. The language in which the program is written b. The amount of resources, such as storage, required c. The number of characters used to write the program d.
Answers (1)
How to use translate on a website?
Answers (1)
When we consider data quality, what are the differences among validity, reliability, and representativeness? How can you know the data have high levels of these characteristics?
Answers (1)
You are creating a budget for your new business. What should you include? A. All income and expenses. B. Fixed expenses but not income. C. Income but not variable expenses. D. Fixed and variable expenses but not taxes.
Answers (1)
This resume format focuses on the tasks or skills that an applicant can perform is what? A chronological B functional C electronic or D scannable
Answers (1)
Home
»
Computers & Technology
» Why is String final in Java?
Sign In
Sign Up
Forgot Password?