hi to all. well can you please tell me that why String class
is immutable?
Thanks in advance.
Answer Posted / syed
Since, return type of the string class cannot be altered
with substrings or any ammendments to it .
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
Can You Have Virtual Functions In Java?
What does java edition mean?
Are arrays static in java?
What is private static class in java?
what is the difference between a threads start() and run() methods? : Java thread
What is the difference between an interface and an abstract class?
Can a static method be final?
Explain about procedural programming language or structured programming language and its features?
Is java call by value?
What are the different types of java?
What is the purpose of using bufferedinputstream and bufferedoutputstream classes?
Which method returns the length of a string?
Can we create an object of static class in java?
What is final variable?
What type of variable is error flag?