Skip navigation
Why string is immutable?
0:00

Why string is immutable?

#softwareengineering #java #coding

Why string is immutable? What is the String Constant Pool (SCP)? Difference between creating a string using "" and new String()? What happens when two string literals have the same value? What does intern() method do? When should you use StringBuilder over String? What happens when you concatenate strings using + inside a loop? Why is String immutable but StringBuilder mutable? Why is String preferred as a key in HashMap? Comment pdf and I'll send the remaining questions directly into your DM #softwareengineering #java #coding

Comments

Comments from the original post on Instagram

No comments yet