why string is not taking as primitive datatypes but we r
taking it as a class? why explain it?
Answer Posted / payel
String should be class so that it can be immutable and
making String immutable, makes it thread safe and
thus imporves performance.
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
How do you sort words in java?
What is exception hierarchy in java?
What is the difference between access specifiers and access modifiers in java?
How do I stop concurrentmodificationexception?
What are the wrapped, classes?
Can I override protected method in java?
What is run time allocation?
explain different ways of using thread? : Java thread
How to reverse string in java?
what do you understand by synchronization? : Java thread
What is difference between filereader and bufferedreader?
Why is singleton instance static?
what are three ways in which a thread can enter the waiting state? : Java thread
What are the different types of sorting in java?
How many bytes are a float?