Welcome to Questionaries, where you can ask questions and receive answers from other members of the community.

Let us know at info@questionaries.org

Can main() method be overloaded in java?

6 like 0 dislike
Hello
Can main() method be overloaded in java?
please reply me. i am waiting for your reply.
Thanx
asked 1 year ago by eagles11 (179,830 points)

1 Answer

1 like 0 dislike
 
Best answer
Yes. the main() method is a special method for a program entry. You can overload main() method in any ways. But if you change the signature of the main method, the entry point for the program will be gone.
answered 1 year ago by DBA-boss (120,990 points)

Related questions

5 like 0 dislike
1 answer
asked 1 year ago by DBA-boss (120,990 points)
5 like 0 dislike
1 answer
asked 1 year ago by DBA-boss (120,990 points)
5 like 0 dislike
1 answer
6 like 0 dislike
1 answer
asked 1 year ago by eagles11 (179,830 points)
2 like 0 dislike
1 answer
asked 1 year ago by daneim (127,080 points)