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 enumeration is faster than iterator?
What is the purpose of the system class in java programming?
What is compareto?
Why is string builder not thread safe?
Which object oriented concept is achieved by using overloading and overriding?
What is the difference between super class & sub class?
What java is used for?
What is mvc in java?
How do you allocate memory to object?
How many types of memory areas are allocated by JVM in java?
What is meant by object oriented programming – oop?
Is oracle java 11 free?
What are 4 pillers of object orinted programming?
Tell me about different OOPS concepts.
Define how objects are stored in java?