why string is not taking as primitive datatypes but we r
taking it as a class? why explain it?
Answer Posted / 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 |
Post New Answer View All Answers
design an lru cache in java?
What is public static?
What is variable explain?
Why javac is not recognized?
What is meant by vector class, dictionary class, hash table class, and property class?
What is the purpose of encapsulation?
What is the use of static class?
What is port number in java?
What is sleep method?
Can long be null in java?
Can we declare register variable as global?
Which programming language is most secure?
Explain the difference between private, public, package and protected in java?
Convert a BST into a DLL and DLL to BST in place.
What are the differences between include directive and include action?