Indu Acharya wrote:Liutauras - I wanted to know what was wrong so that it would be helpful in future when I face same error.
In the future you most likely will know what to do (there is nothing wrong with code, at least I don't see it now). Problems probably could be solved by rebuilding or update'ing project (by clicking right mouse button on the specific project you'd find such option.
In the meantime, since you're getting ready for the certification, Roel gave you a very valid advice - use command line compiler. This is what mots of the certification preparation books advice, don't they? Eclipse highlighting you errors, while nobody during the exam will do that - so better train your eyes using simple text editor with no help and command line compiler, which can be invoked from the console: