Infosys interview question

Can we override main method in java.