Answer to Question #167306 in English for Kwame Hayford

Question #167306



Why Is Method main Declared static?


1
Expert's answer
2021-03-02T06:03:15-0500

Java program is to declared static because keyword allowed it being created without an object of a class in which the main method is defined and it is declared as public,since the codes are used outside when the program is started .



Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS