The misty “Unsafe” in Java

The Depths of “Unsafe” class in Java

KRISHNA KISHORE V

--

Fig 1 Code for Getting Unsafe object

The Unsafe class is the basis for implementing CAS in Java. In this article, we will understand more about Unsafe and its capabilities.

The name of the class Unsafe comes from the fact that it deals with. The sun.misc.Unsafe is really meant to be a low-level VM library interface designed to be used strictly within the JDK. It is…

--

--

KRISHNA KISHORE V

Full Stack Tech Lead | Software Consultant | Technical Content Writer