Domanda di colloquio di LTIMindtree

Difference between compiler and interpreter,and for loop and while loop,and asked to do some coding on inheritance and constructor.