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
Why are getters and setters used?
What steps are taken when the OS shifts from one-thread execution to another?
What is remote method invocation (rmi)?
What is null data type?
How do you create a first line indent?
Write a method that will remove given character from the string?
How do you create a reference in java?
What is hash in java?
What is an empty list in java?
What are the types of arrays in java?
What does percent mean in java?
What was java originally called?
What’s the difference between constructors and other methods?
What is jvm? How its run?
what do you mean by java annotations?