So I had 0.5 hearts left and keepInventory was not on and found 3 creepers. I thought I was dead, but I killed them with my sword with Sweeping Edge III, and luckily, this is only in Java.
Wdym by "this is only in Java"