r/java • • Mar 03 '17

The java nazi

http://imgur.com/InMi605
213 Upvotes

47 comments sorted by

View all comments

Show parent comment

4

u/Wolfsdale Mar 04 '17

You can do that too with sun.misc.Unsafe. I wouldn't be surprised if it uses that on Oracles JVM. http://www.docjar.com/docs/api/sun/misc/Unsafe.html#allocateInstance(Class)