Question: how to fetch value from enum in java?
Answer: if status is of type Status enum, status.name() will give you its defined name. You can use values() method: For instance Status. values()[0] will return PAUSE in your case, if you print it, toString() will be called and "PAUSE" will be printed.