answersLogoWhite

0

Yes. The main method is just like any other java method and can be overloaded.

But - Only the method with public static void main(String[] args) signature will get invoked when the class is run.

User Avatar

Wiki User

15y ago

Still curious? Ask our experts.

Chat with our AI personalities

RafaRafa
There's no fun in playing it safe. Why not try something a little unhinged?
Chat with Rafa
ProfessorProfessor
I will give you the most educated answer.
Chat with Professor
EzraEzra
Faith is not about having all the answers, but learning to ask the right questions.
Chat with Ezra
More answers

No. The only way Java can distinguish between different versions of overloaded methods is the parameter list.

User Avatar

Wiki User

14y ago
User Avatar

Add your answer:

Earn +20 pts
Q: Can a main method in java be overloaded?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering