Hire QA – Specialized in QA Recruitment, Technical Interviews and Testing Solutions

Can we overload main method?

Category: Java

Yes, we can have multiple methods with name “main” in a single class. However if we run the class, java runtime environment will look for main method with syntax as public static void main(String args[]).

Leave a Reply

Your email address will not be published. Required fields are marked *