Sign In
Ask Question
Computers & Technology
Rowan Dalton
4 September, 21:57
Why is String final in Java?
+3
Answers (
1
)
Bianca Hartman
5 September, 00:03
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?
Get an answer to your question ✅
“Why is String final in Java? ...”
in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers
You Might be Interested in
The reason why a database table is in the first normal form (1NF), but not in the second form (2NF) is because: a. There is a non-prime attribute that is partially dependent on the key of the table. b.
Answers (1)
Which item is essential to know before sketching a navigation menu flowchart
Answers (2)
Store shelves are empty during periods of Excess Demand. What is another term for Excess Demand? A. Surplus B. Shortage C. Equilibrium
Answers (1)
How do i allow chrome to access the network in your firewall or antivirus settings?
Answers (1)
Which of the following is NOT true about the ways that various professions use computers? Police use them to track criminals. Pilots use them to learn at first, but rarely afterwards. Librarians use them to replace card catalog systems.
Answers (1)
New Questions in Computers & Technology
The author of ""Cyber-psychopathy: What Goes On in a Hacker's Head"" claims that the act of hacking is a deep-seated psychological illness. What textual evidence supports this statement?
Answers (1)
Henry created a software that manages all of his music. He wishes to run software on another computer system that runs an operating systen that does not support the software. What can he do to run the software on the other datebase
Answers (1)
I believe i have turned off activity reporting but does Microsoft parental activity reporting only reports Microsoft edge?
Answers (1)
What is meant by authorization? The decision to allow or deny a subject access to an object. The ability of a subject and an object to interact. The user, network, system, process, or application requesting access to a resource.
Answers (1)
What does EDI stand for?
Answers (2)
Home
»
Computers & Technology
» Why is String final in Java?
Sign In
Sign Up
Forgot Password?