Atos Interview Question

When developer have to call finalize ?