I got it from javabeat.net
What will be the output of the following program?
1. The program will throw compile-time errors
2. The program will compile and output nothing.
3. The program will throw a run-time exception.
4. The program will output '
TEST'.
Answer : prints TEST
but enhanced for loop does not take iterator then how it is able to compile and run? Why not it is giving compiler error?