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
What are predefined functions?
What does provide mean construction?
What is a boolean flag in java?
What does a void function return?
What is the relationship between class and object?
what do you mean by java annotations?
Are arrays immutable in java?
Explain inner classes ?
Is there a way to increase the size of an array after its declaration?
What is not object oriented programming?
What are namespaces in java?
What is an argument in java?
Explain importance of finally block in java?
What are different access specifiers in java?
What is the difference between scrollbar and scrollpane?