CopyPastor

Detecting plagiarism made easy.

Score: 0.9876723977485283; Reported for: String similarity Open both answers

Possible Plagiarism

Plagiarized on 2019-06-05
by Jainil Patel

Original Post

Original - Posted on 2014-12-24
by Semih Okan Pehlivan



            
Present in both answers; Present only in the new answer; Present only in the old answer;

we can get address of an object in memory. Well how? it is like that;
using sun.misc.Unsafe class in java.
create new Unsafe object and use the getAddress(Object); method and it will return a long value that is address.
and also there are many methods for this class.
you can change the values in this address using putInt(Object,long offset, int value) or like this method.(getting some value getnt(Object)).
Note: this class is really UNSAFE . if you make wrong things on your project, JVM will be stopped.
we can get address of an object in memory. Well how? it is like that;
using sun.misc.Unsafe class in java.
create new Unsafe object and use the `getAddress(Object)`; method and it will return a long value that is address.
and also there are many methods for this class.
you can change the values in this address using `putInt(Object,long offset, int value)` or like this method.(getting some value `getnt(Object)`).
Note: this class is really **UNSAFE** . if you make wrong things on your project, **JVM** will be stopped.

        
Present in both answers; Present only in the new answer; Present only in the old answer;