Suppose there is a static block in a Class
public class Menu {
private static Map<String, String> buttonEventMap = new HashMap<String, String>();
static {
buttonEventMap.put("show-user","show");
buttonEventMap.put("delete-user","delete");
}
public static Map<String, String> getHashMap() // To get the hash map
}
what is the life cycle of the block, when it will be instantiated, when the program starts or when we create the first object of the Class