Java Language sun.misc.Unsafe

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!

Remarks

The Unsafe class allows a program to do things that are not allowed by the Java compiler. Normal programs should avoid using Unsafe.

WARNINGS

  1. If you make a mistake using the Unsafe APIs, your applications are liable to cause the JVM to crash and/or exhibit symptoms that are hard to diagnose.

  2. The Unsafe API is subject to change without notice. If you use it in your code, you may need to rewrite the code when changing Java versions.



Got any Java Language Question?