how can we access system memory through java like pointers in 'c'???????????
access system memory through java
Started by ashokraju07, Sep 15 2010 06:45 AM
4 replies to this topic
#1
Posted 15 September 2010 - 06:45 AM
|
|
|
#2
Posted 15 September 2010 - 07:14 AM
This is not possible in Java. The Java memory manager can move objects in memory so you really don't have a fixed pointer to use, only references, and these cannot be used as pointers. This is one of the key factors of Java: hide all the memory management complexity from the user.
#3
Posted 15 September 2010 - 09:00 AM
One of Java's goals is to maintain system security. It should not be interfering with the host system's operations (for example, through direct manipulation of system memory), as the only reason to want to do so is interference with other programs.
#4
Posted 15 September 2010 - 04:41 PM
then how can we acess memory in java
#5
Posted 15 September 2010 - 06:10 PM
Within your application, you use reference variables, but you cannot grab a specific address.


Sign In
Create Account

Back to top









