Nagarro interview question

Diff. bw compile time exception and run time exception