I had a java file with compilation errors as shown in eclipse IDE.
But the class file is still generated in the classes folder on building and pressing clean the project.
I confirmed that the class file has an updated time stamp and also that a System.out.println() statement that i added was indeed printed out when this class was encountered during the running of a web application in which this class was called somewhere.
(The java class has no subclasses and it is a single class with public modifier).
How does it happen so?