Why are strings immutable in Java?
Strings in java are frequently used for hashmap keys. Now if someone changes the value of the string it will cause severe discrepancies. Hence strings are made immutable.
Is This Answer Correct ? | 0 Yes | 0 No |
How are Java source code files named?
what is the difference between System.exit() and System.exit(1)?
1 Answers eClinical Solutions, eClinical Works, eClinicalWorks,
Write program to print Hello World and print each character address in that string and print how many times each character is in that string? Ex: H: 0 & 1 e:1 & 1 l :2,3,8 & 3 o:4,6 & 2 w:5 & 1 r: 7 & 1 d 9 & 1
Why is java so important?
What is the functionality of Webserver?
What does three dots mean in java?
which one the better thread emplemented thread or extended ?
What does math floor () do?
Explain about interrupt() method of thread class ?
Why static functions are used?
What is immutable state?
Is null a string?