• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to directly acess memory in java  RSS feed

 
naved momin
Ranch Hand
Posts: 692
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in c or c++ we can directly access memory location can we do that in java ....if yes how ?

i m asking this for my knowledge ...brief explanation is most welcome
 
Jan Cumps
Bartender
Posts: 2632
17
C++ Linux Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java RTS has capablities for that:
http://java.sun.com/javase/technologies/realtime/index.jsp
 
Ove Lindström
Ranch Hand
Posts: 326
Android Firefox Browser Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
naved momin wrote:in c or c++ we can directly access memory location can we do that in java ....if yes how ?

i m asking this for my knowledge ...brief explanation is most welcome


No.

The JVM does that for you, since there is no way to know how the operating system handles memory. And there is actually no need to access memory "directly" other than using the reference to what you need to access.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!