What would happen if “String[]args” is not included as an argument in the main method?

Question:
What would happen if “String[]args” is not included as an argument in the main method?

1.No error

2.Compilation error

3.The program won’t run

4.Program exit

Posted Date:-2022-04-16 15:52:44


More MCQS Questions and answers

Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!