Colan Infotech interview question

explain hooks, hoc and lifecycle method