why string is not taking as primitive datatypes but we r
taking it as a class? why explain it?
Answers were Sorted based on User's Feedback
Answer / ankit
All primitive types have fixed memory size. Now in case of
the String, its length is not fixed and so is its size.
That's why it cannot be a primitive data type.
| Is This Answer Correct ? | 5 Yes | 2 No |
Answer / 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 |
Explain the JDB in depth & command line.
What for read() function?
Where can I find data structures question and answers with comprehensive working code written in Java
What is valid keyword in java?
Can an object subclass another object?
What is procedure writing?
Is void a type?
what is ennumaration?
Can we make a constructor final?
What is inner class?what is the use of inner class?where we create the object for inner class? and inner class can extend any class or inner class can implement any interface?
What is api in java?
What is methodological framework?