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
How do you get length in java?
What is meant by javabeans?
Can we overload the constructors?
Can constructor be static or final?
What is reverse function?
Why is singleton instance static?
Can a function return a function?
How do you convert string to int in java?
What is the basic concept of java?
Why declare Main() method as a static in java ?
How will you initialize an Applet?
What restrictions are placed on method overloading?
Define Multiprogramming and Multiprocessing in java.
Can a method be static?
What are java threads?