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
After the Internetwork layer places its header on a datagram, what is the unit of information is referred to?
Answers (1)
Which user input device is used with a PDA? The user input device for a PDA is a (an) blank?
Answers (1)
You are adding new wires in your building for some new offices. The building has a false ceiling that holds the lights and provides an air path for heating and air conditioning. You would like to run your Ethernet cables in this area.
Answers (1)
What is "risk management," and why is it important in the project environment?
Answers (1)
What is Linux an example of
Answers (1)
New Questions in Computers & Technology
What does it mean when #DIV/01 is displayed and a green triangle is added to the upper-left corner of a cell
Answers (2)
What does a data bar in a cell represents
Answers (2)
Long distances are usually measured in kilometers. T or F?
Answers (1)
In 1-2 sentences, describe some keyboard shortcuts you have used during this lesson to save you time.
Answers (1)
When using the PMT function in excel to calculate periodic payment rates based on the principal value (pv), number of periodic payments (nper), and interest rate (rate) for a loan, what is the correct order of arguments to insert?
Answers (1)
Home
»
Computers & Technology
» Why is String final in Java?
Sign In
Sign Up
Forgot Password?