Jump to content

access system memory through java

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
4 replies to this topic

#1
ashokraju07

ashokraju07

    Newbie

  • Members
  • Pip
  • 8 posts
how can we access system memory through java like pointers in 'c'???????????

#2
dbug

dbug

    Programmer

  • Members
  • PipPipPipPip
  • 155 posts
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
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
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.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#4
ashokraju07

ashokraju07

    Newbie

  • Members
  • Pip
  • 8 posts
then how can we acess memory in java

#5
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
Within your application, you use reference variables, but you cannot grab a specific address.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog