Sign In
Ask Question
Paul
Computers & Technology
13 January, 01:34
Why is String final in Java?
+1
WhatsApp
Telegram
Twitter
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
loopCount = 1; while (loopCount < 3) System. out. println ("Hello"); loopCount = loopCount + 1; No output Hello Hello Hello Hello Hello This is an infinite loop
Answers (2)
Which feature can you use to restrict snmp queries to s specific oid tree?
Answers (1)
When comparing digital to print media, what are four advantages of digital media?
Answers (2)
In 1736, Euler represented the Knigsberg bridge problem as a graph, marking (as recorded) the birth of graph theory. True False
Answers (1)
Read an integer from keyboard and then print the result of the sum obtained by adding the entered integer to the integer formed by reversing the order of the digits. (For example: entered number = 123. Sum = 123+321 = 444)
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
Ask Question
Menu
Calculator
Subjects
History
English
Mathematics
Biology
Physics
Chemistry
Geography
Social Studies
Business
Law
Arts
SAT
Advanced Placement (AP)
Computers & Technology
Engineering
Sign In
close
Sign In
Sign Up
Forgot Password?