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
Is ruby built on java?
What is jee6?
Can you explain the private protected field modifier?
why we use merge option in hybernate pls give a ex snippet
What are the different types of inheritance in java?
What is the purpose of final keyword and when to use it?
What are decalarations?
What are drawbacks of singleton class?
Tell me about your ability to work under pressure
Can java run on google chrome?
What are the uses of java?
What is the base class of all exception classes in java?
Explain the difference between map and flatmap stream operation?
Difference between ‘>>’ and ‘>>>’ operators in java?
Explain the differences between abstraction and encapsulation?