Answer Posted / tanveer
String class is immutable .To make the String immutable use String Buffer or String Builder classes which are mutable
Is This Answer Correct ? | 14 Yes | 4 No |
Post New Answer View All Answers
What is public/private protected in java?
What are the basics of core java?
What is the access scope of a protected method?
State two differences between C and Java.
Why put method is used?
How do you declare an array that will hold more than 64KB of data?
What is immutable in java?
Explain runtime exceptions?
Can a method inside a interface be declared as final?
What is the difference between hashmap and hashtable? What is an interface?
Is vector thread safe in java?
What is prefix of a string?
Detail discussions on JVM, memory management and garbage collector.
What is the difference between static class and normal class?
What is the need of transient variables in Java ?