Results 1 to 3 of 3

Thread: Primitive Data Type

  1. #1
    Junior Member
    Join Date
    Sep 2005
    Answers
    19

    Primitive Data Type

    Cany anyone tell Why String is not a primitive data type?

    Thanks
    Srik


  2. #2
    Contributing Member
    Join Date
    Jul 2006
    Answers
    50

    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.


  3. #3
    Expert Member
    Join Date
    Mar 2012
    Answers
    208

    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
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact