-
Junior Member
Primitive Data Type
Cany anyone tell Why String is not a primitive data type?
Thanks
Srik
-
Contributing Member
Re: Primitive Data Type
A primitive type is predefined by the language and is named by a reserved keyword. Primitive values do not share state with other primitive values.In Java, a string of characters is NOT considered a primitive data type but a complex data type implemented as a Java class.
-
Expert Member
Re: Primitive Data Type
String is not a primitive data type as string has been derived from Char which takes more number of Char and integers..providing the more memory storage hence strings are objects of class String.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules