No the program fails to compile. The compiler says that the main() method is already defined in the class.