The moose likes Beginning Java and the fly likes In Memory Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "In Memory" Watch "In Memory" New topic

In Memory

SrinivasaRao Swarna

Joined: Sep 17, 2006
Posts: 20
Can i know what is in-memeory?
Please guide me
Srinivasan thoyyeti
Ranch Hand

Joined: Feb 15, 2007
Posts: 557
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));

Thanks & Regards, T.Srinivasan
SCWCD 1.4(89%), SCJP 5.0(75%)
SrinivasaRao Swarna

Joined: Sep 17, 2006
Posts: 20

Thank you very much.

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

I agree. Here's the link:
subject: In Memory
It's not a secret anymore!