If I have not assumed or learned anything wrong then all variables that we assign, takes a certain place of the RAM.
For example while working with Java array when we try to print an array it prints a "location".
String [] a = new String [2]
System.out.println(a)
[Ljava.lang.String;@be6280
Now is there any way to set that location?
I think it is possible using C++, is it? If any language offers this thing then I should be capable to scan my RAM for that variable or array location at least exhaustively. Can’t I? Have anyone tried doing it?
You could use the Unsafe class as shown here. This is specific to the HotSpot JVM, but it’s probably a start.