Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

In Memory

 
SrinivasaRao Swarna
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can i know what is in-memeory?
Please guide me
 
Srinivasan thoyyeti
Ranch Hand
Posts: 558
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi SrinivasaRao Swarna,

Are you devotee of C language?

You can see Runtime class where in will find some methods to see free memory, Total memory.. Like that.

In Java all references act like pointers.
String s = "Hi"; // Here we can't see address of Object
int a[] = new int[10];

In C:
char *s = "Hi"; // Here we can see address of variable
int *a = (int *)malloc(10*sizeof(int));
 
SrinivasaRao Swarna
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HiSrinivasan,

Thank you very much.

Java Virtual Machine have stack and heap memory.here stack have address of objects .I believe stack memory is in-memory.

Thanks&Regards
Srinivas
 
The knights of nee want a shrubbery. And a tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!