Win a copy of OCP Java SE 8 Programmer II Exam Study Guide this week in the OCP forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to directly acess memory in java  RSS feed

 
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
 
Bartender
Posts: 2633
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
 
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!