How can i create a dangling pointer using Java?
You can not create dangling pointer in java, because there is no mechanism to explicitly deallocate memory