Unsafe

//unsafe 对象非常强大,慎用!慎用!
Field field = Unsafe.class.getDeclaredField("theUnsafe");
field.setAccessible(true);
Unsafe u = (Unsafe) field.get(null);

小编贴上 Unsafe 如何创建,由于该对象中很多方法都没有接触过,后续小编再补充

创建对象,跳过 new (不管你有没有公有构造)

First first = (First) u.allocateInstance(First.class);
原文地址:https://www.cnblogs.com/chbyiming-bky/p/9838044.html