Domanda di colloquio di Cognizant

Difference between compiler and interpreter, loops in java, diff b/w break and continue, asked to write a program having all loops in same program.