Top News

Is it allowed to overload main() method in Java?

 

Yes, Java allows users to create many methods with same name
‘main’. But only public static void main(String[] args) method is
used for execution.

Post a Comment

Previous Post Next Post