The main method should be static for the reason

Question:
The main method should be static for the reason

1.It can be accessed easily by the class loader.

2.It can be executed without creating any instance of the class.

3.It can be accessed by every method or variable without any hindrance.

4.None of the above

Posted Date:-2021-10-25 05:21:08


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!