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
The power of government to allow a business to enter the field being regulated is called
Answers (1)
Which of the following is used to track and gather information without knowledge or authorization? A. Beaconing B. Spyware C. Maleware D. Autosensing
Answers (2)
Which tools can be found in Page Layout tab on ribbon?
Answers (1)
Write a method named buildArray that builds an array by appending a given number of random two-digit integers. It should accept two parameters-the first parameter is the array, and the second is an integer for how many random values to add.
Answers (1)
Which career pathways require arm and hand steadiness as a qualification?
Answers (2)
New Questions in Computers & Technology
Brent sold 17/20 case of tennis balls on Monday and 7/10 case on Tuesday. how many more tennis balls dis he sell on Monday than on Tuesday
Answers (1)
Cars entering our field of vision from the side require the use of
Answers (1)
Which of the following are true statements about digital certificates in Web browsers? I. Digital certificates are used to verify the ownership of encrypted keys used in secured communicationII.
Answers (1)
An Ethernet network, all data travels across the network and between computers in which form or unit?
Answers (1)
Write a function called calculate () that accepts three integer Numbers as arguments, compute these values : Sum and Product and Return these computed results to the main program.
Answers (1)
Home
»
Computers & Technology
» Why is String final in Java?
Sign In
Sign Up
Forgot Password?