Results 1 to 6 of 6

Thread: About arrays memory locations where they are storing

  1. #1

    About arrays memory locations where they are storing

    I want to use pointer in java? i know that java not support pointers but i want to know that if i talk about arrays memory locations where they are storing ?

    Can i know it? plz send your explination with a small program with comments?

    thanks hopefully that i will recive it soon


  2. #2
    Contributing Member
    Join Date
    May 2007
    Answers
    32

    Re: About arrays memory locations where they are storing

    as of my knowledge arrays memory will be stored in the stack


  3. #3
    Junior Member
    Join Date
    Mar 2010
    Answers
    22

    Re: About arrays memory locations where they are storing

    Array in java is reference type.

    Reference type store memory in heap.


  4. #4
    Junior Member
    Join Date
    Apr 2010
    Answers
    1

    Re: About arrays memory locations where they are storing

    ya I agree with Ramshri array is reference type and will be stored in heap ..
    you can try it with native method by passing reference of array to that ... i hope it will work ..


  5. #5
    Junior Member
    Join Date
    Apr 2010
    Answers
    2

    Smile Re: About arrays memory locations where they are storing

    Quote Originally Posted by BHASKAR CHAUHAN View Post
    I want to use pointer in java? i know that java not support pointers but i want to know that if i talk about arrays memory locations where they are storing ?

    Can i know it? plz send your explination with a small program with comments?

    thanks hopefully that i will recive it soon
    Hi Bhaskar, Array in Java considered as an Object even if it contains primitive and stored in Heap.


  6. #6
    Junior Member
    Join Date
    Apr 2010
    Answers
    2

    Re: About arrays memory locations where they are storing

    Hi Bhaskar, Array in Java considered as an Object even if it contains primitive and stored in Heap.


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